Help Flash Remember
CodeChefOpen on judge ↗
Savitar has taken over the world and flash has lost his memory. Cisco is helping flash get back his memories but he cannot do it alone and needs your help doing it. Flash's memory is empty , like the string provided to you. Cisco will provide you with one lowercase alphabet at a time . You have to tell flash how many non-empty distinct substrings can be formed using the alphabets provided till tha
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