151. Reverse words in a string | Leetcode

preview_player
Показать описание
This tutorial unveils two ingenious strategies to conquer the challenge of reversing word order in a string.

The first approach we unravel embraces the power of Python, harnessing its innate capabilities using its in-built function.

However, we're well aware that relying solely on built-in methods might not always be the preferred path. Therefore, the second solution takes a different route, where I coded the logic from scratch.

0:00 - Intro
0:45 - Using Python's built-in method
2:10 - Logic-based approach

#datastructures #interviewquestions #leetcode
Рекомендации по теме