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.
Yes, and you don't even need two rows. I used one row, and saved the last overwritten value in another variable. The part of the row "to the left" of current processing posision was like your "row 2", and the part of the row "to the right" was like your "row 1". The extra variable was to store the number that was last overwritten from row 1.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Common Child
You are viewing a single comment's thread. Return to all comments →
Yes, and you don't even need two rows. I used one row, and saved the last overwritten value in another variable. The part of the row "to the left" of current processing posision was like your "row 2", and the part of the row "to the right" was like your "row 1". The extra variable was to store the number that was last overwritten from row 1.