Create a method to find the longest word in a sentence.
MediumProblem Statement
Create a method to find the longest word in a sentence.
Sample Input
"The quick brown fox jumps over the lazy dog"
Sample Output
quick
Limits
Time: 2s · Memory: 256 MB
Create a method to find the longest word in a sentence.
"The quick brown fox jumps over the lazy dog"
quick
Time: 2s · Memory: 256 MB