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

10th Sep 2021, 7:02 AM
Rupali Haldiya
Rupali Haldiya - avatar
6 Answers
+ 5
This is what I mean rupali , see carefully line number 39,40 and 41 https://code.sololearn.com/cLqN6nSbY270/?ref=app
10th Sep 2021, 11:50 AM
Saurabh
Saurabh - avatar
+ 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).
10th Sep 2021, 8:01 AM
Saurabh
Saurabh - avatar
+ 2
I haven't gone through the code but it gives me "quiet" for "xxGxx$xxxT"
10th Sep 2021, 8:01 AM
Abhay
Abhay - avatar
+ 2
Thanku so much Bro😄 it worked 😃, I'm grateful to you...Again Thanks ✌️✌️✌️✌️😌
10th Sep 2021, 12:30 PM
Rupali Haldiya
Rupali Haldiya - avatar
+ 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
10th Sep 2021, 8:10 AM
Coding Cat
Coding Cat - avatar
+ 1
Saurabh Kumar Yadav nothing happened :|
10th Sep 2021, 10:46 AM
Rupali Haldiya
Rupali Haldiya - avatar