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.
markdown tip: you can start a line with > to make it a quote, looks much better than inline code.
Not an issue! I've just tested your solution and it timed out. Clearly you need to optimize your solution and read this in description -->
Tips: efficiency and trying to figure out how it works are essential: with a brute force approach, some tests with larger numbers may take more than the total computing power currently on Earth to be finished in the short allotted time.
Post under the c# translator comment, so that he can get notified :)!
Solving in C# - fairly confident I have a somewhat optimal solution. When I run tests I get the following output:
However, when I click submit I get the following error:
No idea what that's about or where this
destinationArray
parameter is coming from. Why would BasicTests error out when I submit but pass when I run tests?