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.
Yea what I said is a little jumbled. I was basically trying to say since you use an int to store n, you would have no problems because it can easily fit. Secondly, the only other constraint is that our number has at most 10^6 digits, which we represent as a string, so it is a non-issue. Thanks for asking for clarification.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Big Sorting
You are viewing a single comment's thread. Return to all comments →
Yea what I said is a little jumbled. I was basically trying to say since you use an int to store n, you would have no problems because it can easily fit. Secondly, the only other constraint is that our number has at most 10^6 digits, which we represent as a string, so it is a non-issue. Thanks for asking for clarification.