← All problemsSign in

CLASSMATE NAMES

Vamshi would like to code to get the longest common text from the initial position of every classmate's first name. Help Vamshi to code it. ### Input - First line will contain $T$, number of students. - Each newline contains of a single line of, input the first name the student. ### Output output in a single line the longest common text as described. print null if there is no such text. ### C

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