← All problemsSign in

The Flash

Problem description. After the defeat at the hands of Reverse Flash. The Flash needs to train more to become faster. He can gain more speed if he runs on a longer distance. There are N blocks in the Central City. The Path among the blocks in the city is represented by a String S where each character in the string 'S' represents a block of Central City. The Flash can start at any block, runs ar

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start