Walter White and His Crystals
CodeChefOpen on judge ↗
Walter White is trying to expand his area for selling his crystals. But Jesse tells him that the city whose name contains 'x' ( small letter 'x') is not safe to sell. Walter and Jesse appoint Shailesh to find if the area is safe, as they are busy cooking crystals. But Shailesh is not capable of doing this work, so he needs your help. You will be given a city name $S$, you have to tell whether i
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