0
Security | code coach
It is passing all test cases except 4, will you please help me to describe what is wrong in my code...đ //here is my code https://code.sololearn.com/c1bVqwqu4FI4/?ref=app
6 Answers
+ 5
This is what I mean rupali , see carefully line number 39,40 and 41
https://code.sololearn.com/cLqN6nSbY270/?ref=app
+ 3
This is because you placed the break (line no. 41)statement in wrong place
instead of this one break statement kindly put two break statement in line 39 and 40 before "}" (curly braces).
+ 2
I haven't gone through the code but it gives me "quiet" for "xxGxx$xxxT"
+ 2
Thanku so much Brođ it worked đ, I'm grateful to you...Again Thanks âď¸âď¸âď¸âď¸đ
+ 1
This is all to much code.
Try it this way:
Set alarm=false
Find pos of money
Search from monye pos forwards and if found T set alarm=true and break, if found G break.
Search from monye pos backwards and if found T set alarm=true and break, if found G break.
Then print Alarm if alarm=true, else print quiet
https://code.sololearn.com/cy193FydO5gd/?ref=app
+ 1
Saurabh Kumar Yadav nothing happened :|