← All problemsSign in

Save the Attendance

Problem description There are often situation at the college when people have to prove themselves to the teacher infront of the whole class. Once a boy named pankaj was the center of attack. The teacher gave him a string S consisting of alphabets ( a-z ) and dots ( . ) and asked him to enumerate the strings by filling the dots with alphabets from a-z, such that - abs(S[i] - S[i - 1]) ≤ d for 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.

voice by Sarvam AI

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

Sign in to start