DEV Community

loading...

Discussion on: Easy peasy reverse words

Collapse
divyajyotiuk profile image
Divyajyoti Ukirde Author • Edited

If the question has word length specifically mentioned then you need to apply my solution. I have made the text bold, to avoid confusion. The n there is word-length basically and only those words need to be reversed that satisfy the word-length condition.

Thread Thread
bhagatparwinder profile image
Parwinder 👨🏻‍💻

Ah, you only want n length or above words in a string reversed in place. Now it makes more sense. Danke!