LeetCode 151: Reverse Words of a String - Python Solution

preview_player
Показать описание
Intuitively learn LeetCode solutions

This solution strips extra spaces, then creates an array of words, which is reversed and re-assembled into a string.

#leetcode #strings #arrays
Рекомендации по теме
visit shbcf.ru