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 :(
Loading collection data...
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 :(