We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Addition needs to be done at a and subtraction at b+1.
Also,avoid memset on hackerrank sometimes it doesn't work fine.
Lastly,the final loop would run till <=n.
Array Manipulation
You are viewing a single comment's thread. Return to all comments →
Addition needs to be done at a and subtraction at b+1. Also,avoid memset on hackerrank sometimes it doesn't work fine. Lastly,the final loop would run till <=n.