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.
well on analyzing , i got your logic , but will you please tell me for how you thought of making an array which will store 1 at the position of the element and not for an array which will store the values entered?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Beautiful Pairs
You are viewing a single comment's thread. Return to all comments →
well on analyzing , i got your logic , but will you please tell me for how you thought of making an array which will store 1 at the position of the element and not for an array which will store the values entered?