DEV Community

aryanarya
aryanarya

Posted on

 

Daily Coding - DAY 1 # typographically smallest

Given a string consisting of lowercase letters only, find the typographically smallest string not present as a substring in it.

Given two string S1 and S2. S1 is considered typographically smaller than S2 if either:

Input:

The first line of input contains the string S.

Output:

Answer as stated above.

Constraints:

Sample Input

saurabh

Sample Output

c

Top comments (1)

Collapse
 
dinesh809690203 profile image
DINESH

This is from a ongoing contest.Try yourself dont ask for help without trying

Timeless DEV post...

Git Concepts I Wish I Knew Years Ago

The most used technology by developers is not Javascript.

It's not Python or HTML.

It hardly even gets mentioned in interviews or listed as a pre-requisite for jobs.

I'm talking about Git and version control of course.

One does not simply learn git