You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In lines 20,21 your comments explain that you are adding the first and last element only. Why are you putting random numbers into j and k? Unless it is written down wrong? Your code isnt the first and last element, rather random.