Yet another String Problem
CodeChefOpen on judge ↗
Every day some members of the ABA hacking cult enter the code $“ABA”$ for every successful hack that they perform. One fine day, some members messed it up by entering the sequence ABA at the same time which ultimately jinxed the file. The leader has to check if it file has been jinxed or not. The leader is given a string of length $N$ which is comprised only of A’s and B’s. He needs to figure out
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start