Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
There is an O(1) time solution. Took me a while to find it out... Good luck ;)
This comment is hidden because it contains spoiler information about the solution
Great Kata! Took me a long time, but I learned a lot.
This means the unordered_map you are returning is Empty. For whatever reason codewars won't display the unordered map elements, but I'm not sure why you would need std::pair.
I enjoyed this Kata very much, but just as a heads up for everyone this is definatly more of a math challange than a programming probelm.
Thanks!
math.isqrt
When trying to calculate the square root of a very large number I keep getting values a hundred or so too large. I've tried int(math.sqrt(num)) and int(num**\0.5). Is there another way to do this in python?
Took me awhile but great Kata, never heard of regex before this so I learned a lot.
Really great Kata and Series!
I built a working reccursion program for all "money" values under 21000, if the input value is any higher I get a warning. I posted the warning below, I treid changing all my variables to "long long" however this didn't fix anything. Anyone have any ideas for a fix? (I'm using C++)
UndefinedBehaviorSanitizer:DEADLYSIGNAL
==1==ERROR: UndefinedBehaviorSanitizer: stack-overflow on address 0x7ffcccc5dff8 (pc 0x7f1c86f8d48e bp 0xffffffffffffff68 sp 0x7ffcccc5dff0 T1)
==1==WARNING: invalid path to external symbolizer!
==1==WARNING: Failed to use and restart external symbolizer!
I struggled too solve this and then struggled too make it fast ennough too pass, but very rewarding!
Took me a long time, but great Kata! I learned a lot about optimization.