← All problemsSign in

Himanshu, Vipin and Crush

Himanshu and Vipin both are having crush on a girl X. Now X is very confused about which one to choose.As X is a programming student, she came up with a programming problem and asked Himanshu and Vipin to solve it. Now you need to help them. You are given a array of strings and an integer K.You need to find a string of length K(this string will be substring for one or more strings) such that it 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