Lexographical_Order
CodeChefOpen on judge ↗
You are given two different strings S1 and S2. If S1 is lexicographically smaller than S2, print Yes; otherwise, print No. NOTE: Lexicographical ordering means dictionary order For Example: “a” comes before "aa" according to dictionary order, “abbd” comes before “abcd”. ### Input - The first line contains two strings S1, S2. Strings S1, S2 consists of lower case letters. ### Output - If S1 is le
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