Security code coah? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Security code coah?

I get wrong in test case#6 it is hidden https://code.sololearn.com/cd3PQcuV0PhX/?ref=app

28th Oct 2021, 7:07 PM
AbdElrahman Maans
AbdElrahman Maans - avatar
4 Answers
+ 4
AbdElrahman Maans It looks like you are trying to resolve every possibility individually. Might I suggest the following. Write a function which will identify $T or T$ Then iterate through your string, xxGxx$xxTxx and filter out the x's. You will then have a string which looks like this G$T Run this string through your function to generate ALARM or quiet
28th Oct 2021, 8:43 PM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
SoloProg I managed to solve every test case except test case 6#
28th Oct 2021, 9:12 PM
AbdElrahman Maans
AbdElrahman Maans - avatar
14th Nov 2021, 8:11 AM
ACE
ACE - avatar