0
Please, how to do it correct?
3 Respuestas
+ 3
TeaserCode
Problem is that you are not assigning return value to any variable.
2nd thing never return in else part inside loop otherwise next iteration will not work.
Here is the solution:
https://code.sololearn.com/cKxmLGSO9Ori/?ref=app
+ 1
Thanks a lot, you are right.
+ 1
TeaserCode
Also no need to do (found1 == false) or (found1 == true) even you can write as
if(!found1) or if(found 1)