← All problemsSign in

Distinct strings

After encounter with dementors in the train Harry felt that his eyesight has degraded so he goes to Madam Poppy Pomfrey.Hogwarts matron.She makes a unique arrangement for his eye testing.She keeps an M×N grid containing lowercase alphabets at a distance and asks Harry to look into it and tell all the distinct strings visible using across reading order(i.e row wise from left to right).She tells 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.

voice by Sarvam AI

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

Sign in to start