Code Coach Security Help | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Code Coach Security Help

Can somebody help me with the security challenge, I tried it in c++ so i would like c++ code but I would be happy with anything, thanks.

13th Jan 2020, 10:56 PM
David Binenfeld
David Binenfeld - avatar
4 Answers
+ 5
Please show us your attempt.
13th Jan 2020, 11:29 PM
HonFu
HonFu - avatar
+ 4
Check out 👇 s=input() a=0 for i in range(len(s)-1): if s[i] =='
#x27;or s[i]=='T': for j in range(i+1,len(s)): if s[j]=='G': a=1 break elif s[j]=='T' or s[j]=='
#x27;: a=2 break if a==1: print ("quiet") break elif a==2: print("ALARM") break
23rd Jul 2021, 3:16 PM
Tharul Nejana
Tharul Nejana - avatar
0
show us ur attempt
18th May 2020, 7:17 AM
UDDESHYA YADAV
UDDESHYA YADAV - avatar
0
Ruby solution word = gets.chomp.to_s word_new = word.gsub("x","") if((word_new.include? "T
quot;) ||( word_new.include? "$T")) puts 'ALARM' else puts 'quiet' end
13th Apr 2022, 8:31 PM
Seif Eddine N
Seif Eddine N - avatar