+ 1

Code Coach "SECURITY"

Someone can tell how my newbie code get wrong at Test 4 (answer is ALARM) in security code coach ??? https://code.sololearn.com/cj2ewGrwbM12/?ref=app Jayakrishna🇮🇳 Wilbur Jaywright David Ordás

5th Apr 2021, 1:31 PM
Malik Hafid Sidiq
Malik Hafid Sidiq - avatar
2 Respuestas
+ 2
I don't know what test 4 uses for input but this case would fail: TG$G$TG$GT Notice the $T is in that string putting the money unguarded next to the thief.
5th Apr 2021, 10:04 PM
Josh Greig
Josh Greig - avatar
0
Josh Greig Yes I was found it. when go to else, it will error when z+1 out of range. Thanks :)
5th Apr 2021, 10:29 PM
Malik Hafid Sidiq
Malik Hafid Sidiq - avatar