Largest Odd Number in String - Leetcode 1903

preview_player
Показать описание
Today we will solve the "Largest Odd Number in String" problem from Leetcode. We will walk through a simple iteration solution to solve this problem.

This question has been asked by Amazon, Apple, Google, Meta, Microsoft, and so many other companies.

Please check the channel page for more leetcode solution videos. Also don't forget to like, comment, and subscribe.
Hope you enjoy the video and Thanks for watching 🙏

Chapters:
0:00 Intro and question
0:07 Examples
0:46 Broute-force solution
1:24 Iterate from end solution
1:58 Code walkthrough
3:03 Time and Space Complexity
Рекомендации по теме
Комментарии
Автор

I don't get it, why isn't num[num.length] an overflow? Is it a javascript thing?

elarmincs