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.
C/C++ should be added
C/C++ should be added
Thanks for suggestion.
This comment is hidden because it contains spoiler information about the solution
This will fail if test case have some like (-10000000, 1000000). Run to morning tomorrow =))
This is BAD solution
Your solution is not good. Every good boy just use O(1) memory and O(n) time, you use O(n) memory.
This is not good solution, take O(n) time and O(n) memory. My Soluton take O(n) time and O(1) memory
This is really 5kyu ???
Error: Cannot access protected property Node::$next
Thanks for your suggestion, but I still haven't figured out the solution, could you give some more details?
I tried to resolve this kata by A* Algorithm but, it always timeout. ANY suggestion for me?
I really don't know what is this kata expect.I don't under stand this kata.
This solution is not good because it take O(n) memory.