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.
Rejected due to
Changing initial solution with unnecessary comments and code
Changing random test count from 100 to 1.
Increasing the array to extremely huge size...
Either intentionally or unintentionally doing so, please resort to the
kumite
page to conduct testing to existing translations or solution panel'sfork
feature to improve your solution / keep it in your draft to prevent accidental approval!C/C++ should be added
C/C++ should be added
Thanks for suggestion.
It belongs to a very classic category of algorithmic problems, the typical solution to this kata holds in less than 10 lines, so I think 5kyu is a fair rank and 4 kyu would be clearly undeserved. I don't know (I never could really understand) what is dynamic programming, but I think you need to find (sort of) linear solution to pass the tests, this isn't either excessive, considering the elements I indicated.
This comment is hidden because it contains spoiler information about the solution
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
O(2n) is the same as O(n)
Yes this is 5kyu as I saw yellow vented >_< ~~~~
kinda sus
This is really 5kyu ???
Loading more items...