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
Yes, this was the first solution. I didn't like it either. Then I corrected it to the flag. Thanks for the comment! 👍
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
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
Loading collection data...
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
Yes, this was the first solution. I didn't like it either. Then I corrected it to the flag. Thanks for the comment! 👍
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
This comment is hidden because it contains spoiler information about the solution
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