← All problemsSign in

String Comparision

Consider 2 strings. We define string a to be strictly greater than string b (both are of same length) when each character of a is strictly greater than corresponding character in b. Here a given character is strictly greater than another character if its ASCII value is greater than the other. Example “www” is strictly greater than “abc” but “gbc” is not strictly greater than “abc”. You are provide

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