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.
write a simple swap function. also, dont make calls to IndexOf twice in a row for same thing
take a look at my code and see if it helps you
thats prolly because we're not supposed to solve it by the regular brute force.. iam sure the values will exceed the maximum of most languages if taken literally
This comment is hidden because it contains spoiler information about the solution
I'am running the same test case case through vs code(node.js) and i get the expected answer, but its coming out improper in the compiler :(