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.
thats the case because the indexing is starting from "numElements -1", and "i>=0" provides the interval showing that it should ouput all the content in the indices starting from "numElements -1" all the way to 0 also meaning outputting the content in reverse. Hope you get it :)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Arrays Introduction
You are viewing a single comment's thread. Return to all comments →
thats the case because the indexing is starting from "numElements -1", and "i>=0" provides the interval showing that it should ouput all the content in the indices starting from "numElements -1" all the way to 0 also meaning outputting the content in reverse. Hope you get it :)