13th Mar 2021, 6:57 AM
TeaserCode
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
13th Mar 2021, 7:09 AM
A͢J
A͢J - avatar
+ 1
Thanks a lot, you are right.
13th Mar 2021, 7:12 AM
TeaserCode
+ 1
TeaserCode Also no need to do (found1 == false) or (found1 == true) even you can write as if(!found1) or if(found 1)
13th Mar 2021, 7:15 AM
A͢J
A͢J - avatar