Maximum Number of Vowels in a Substring of Given Length - LeetCode 1456 - Python #leetcode75

preview_player
Показать описание
Explaining how to solve Maximum Number of Vowels in a Substring of Given Length from leetcode in Python!

@0:53 - Example + Explanation
@1:15 - Code
@3:37 - Code Walkthrough with Example
@6:30 - Time and Space Complexity

Music: Bensound

Lemme know if you have any comments or questions!:)))

Socials:

Playlists:

Рекомендации по теме
Комментарии
Автор

I’m not sure I quite understand how you came up with the range of the 2nd for loop. My initial solution was inefficient with a nested for loop. Could you please elaborate on your thinking behind the 2bd for loop and how you came up with that technique? Thank you so much! I’m super new and appreciate all the knowledge and feedback!

ShafayatAlam
Автор

we might be able to early stop as well by adding this code:
if max_co==k:
break

mydevice
welcome to shbcf.ru