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.
This is not clever way the loop must be terminate if value found but this code will loop till the end
how could this best practice
how could this code work..? it just return array1
what happen to index 0? it will be alwayes 0
This comment is hidden because it contains spoiler information about the solution
what lol.. the function will do nothing you done it all for him
then it will return 0 when it get back to the caller function...its correct
Father of recursion nice job
how could this work?
This one is good my mind run for sorting when seeing this algorithm
ya lol its bad practice that's why you didn't see
this is not a good way if 999999999 value is in the array it will skip it