Write a program to find the longest word in a sentence.
MediumProblem Statement
Write a program to find the longest word in a sentence.
Sample Input
"Coding is a wonderful experience"
Sample Output
experience
Limits
Time: 2s · Memory: 256 MB
Write a program to find the longest word in a sentence.
"Coding is a wonderful experience"
experience
Time: 2s · Memory: 256 MB