Leetcode - Minimum Window Substring (Python)

preview_player
Показать описание
Leetcode Blind Curated 75
Leetcode - Minimum Window Substring #73
Difficulty: Hard(?)
Рекомендации по теме
Комментарии
Автор

Died at the disappointment in your voice at the end with "and remember do not trust me, I know nothing..."

EJupkeep
Автор

Thank you for your explanation using the more efficient solution! Really helped me to understand as I go through it with pen and paper!

bennypham
Автор

The brute force for this problem was throwing me for a bit quite a bit on this one! Thanks for walking through the approaches again!

janmichaelaustria
Автор

The reason why u didn't have to do start:end+1 was because your end pointer would anyways move to the next
For eg:
AB
End on A
Count becomes 0
But end +1 is the last line
So ur end becomes 1
That's why s[0:2]
Therefore AB

haydencordeiro
Автор

This approach will not work for the following: s="aa" t="aa" and s="bbaa" t="aba".

BharathReddyPothuluru
Автор

Super solution sir. But I did not understood the second solution though

sharifmansuri
welcome to shbcf.ru