+ 1

How can I solve my problem?

An excercise called "Security" is kinda wierd because it is difficult to define the size of char C array. Can you give me a hint to solve it? (This excercise is on lvl "Hard" for F2P players). https://code.sololearn.com/cF9qCh9mBWP9/?ref=app

26th Sep 2021, 4:17 PM
SelfyTheMentalist
SelfyTheMentalist - avatar
2 Antworten
+ 7
SelfyTheMentalist , the way you approach this task seems to be too complicated. here some hints: ▪︎take an input as described in the task description e.g. "xxxxxGxx$xxxT" ▪︎remove all "x" from the string. the result will be: "G$T" (reduced string) ▪︎there are 2 "critical situations" that should cause alarm: "$T" and "T
quot; ▪︎if the "reduced" string contains one of the mentioned substrings "$T" or "T
quot; => "ALARM" else "quiet" happy coding and good success!
26th Sep 2021, 7:51 PM
Lothar
Lothar - avatar
+ 2
A hint will be to receive a string and then test that.
26th Sep 2021, 4:27 PM
JaScript
JaScript - avatar