← All problemsSign in

Game Of Strings

Chef and his brother were playing a game of strings. The chef was having string S1 and his brother was having string S2 and a universal string S. The one whose string has the maximum no. of characters from the universal string wins the game. Help the chef and his brother to know who wins the game. Letter is case sensitive, so 'x' is different from 'X'. ###Input: - The first line contains

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