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.
Wow I simply assumed the numbers would get too large for that to work. Python is awesome! I know it automatically resizes ints to longs. I guess it does that for BigInts too. On harder challenges I'd be careful about timeout, but this looks like a much cleaner solution if the judge will run it. Much cleaner than the Python solution I posted!
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and Permutations
You are viewing a single comment's thread. Return to all comments →
Wow I simply assumed the numbers would get too large for that to work. Python is awesome! I know it automatically resizes ints to longs. I guess it does that for BigInts too. On harder challenges I'd be careful about timeout, but this looks like a much cleaner solution if the judge will run it. Much cleaner than the Python solution I posted!