MELIODAS AND STRING
CodeChefOpen on judge ↗
Meliodas is given two strings, x and y(for his assignment) . Help him completing it by finding a string s , such that: - s can be expressed as s= sx + sy where sx is a non-empty substring of x and sy is a non-empty substring of y. - s is a palindromic string. -The length of s as long as possible. For each of the q pairs of strings (xi and yi) received as input, find and p
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