+ 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
2 Answers
+ 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 "Tquot;
âȘïžif the "reduced" string contains one of the mentioned substrings "$T" or "Tquot; => "ALARM" else "quiet"
happy coding and good success!
+ 2
A hint will be to receive a string and then test that.