Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimum Length Word #14

Open
Ojas-Arora opened this issue Mar 28, 2023 · 2 comments
Open

Minimum Length Word #14

Ojas-Arora opened this issue Mar 28, 2023 · 2 comments
Assignees

Comments

@Ojas-Arora
Copy link
Owner

Given a string S (that can contain multiple words), you need to find the word which has minimum length.
Note : If multiple words are of same length, then answer will be first minimum length word in the string.
Words are seperated by single space only.
Input Format :
String S
Output Format :
Minimum length word
Constraints :
1 <= Length of String S <= 10^5
Sample Input 1 :
this is test string
Sample Output 1 :
is
Sample Input 2 :
abc de ghihjk a uvw h j
Sample Output 2 :
a

@SUGAM-ARORA
Copy link
Contributor

kindly assign this to me

@SUGAM-ARORA
Copy link
Contributor

thnks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants