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.
I have my code submitted above in the discussion area.
My way permanently makes it reverse. If the interviewer asked to reverse the array, then this solution would not work since it does not reverse it, but it prints it in reverse. If they just want it to print in reverse, then rajarshi356's works fine.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Arrays - DS
You are viewing a single comment's thread. Return to all comments →
I have my code submitted above in the discussion area.
My way permanently makes it reverse. If the interviewer asked to reverse the array, then this solution would not work since it does not reverse it, but it prints it in reverse. If they just want it to print in reverse, then rajarshi356's works fine.