Lexographical_Order Editorial

Lexographical_Order

Explanation

Given two strings A, B output Yes is A is lexicographically Smaller than B

#include<bits/stdc++.h>
using namespace std;
int main()
{
    string a,b;
    cin>>a>>b;
    if(a<=b)
    {
        cout<<"Yes\n";
    }
    else
    {
        cout<<"No\n";
    }
}