Lexicographically Minimum String After Removing Stars | LeetCode 3170 - Python

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

I am still waiting for the video about how you became that good at algos.

itsmoonemoji
Автор

This part is quite confusing:

while smallest != 'z' and len(hashmap[smallest]) == 0:
smallest = chr(ord(smallest) + 1)

I assume we take next char after smallest and keep looping hashmap until we find a character with [indexes]?

itsmoonemoji
Автор

It took me few minuites to understand certain part of code. You could have explained this one better

vishaalkumaranandan
visit shbcf.ru