First Missing Positive | Leet code 41 | Theory explained + Python code

preview_player
Показать описание
This video is a solution to Leet code 41, First Missing Positive. I explain the question, go over how the logic / theory behind solving the question and finally solve it using Python code.

Comment below if you have a better solution to this problem!

Let me know if you have any feedback and don't forget to subscribe for more videos!

More leetcode questions solved:

Timestamps:
0:00 Question
1:21 Solution Explained
11:05 Python Code

Gear used:
Комментарии
Автор

He confused the whole thing even more than it was!

mhalton
Автор

can someone explain to me why we need the abs() function? I thought the first loop will give us all positive values?

shihengguan
Автор

Hey man! Great job on the video, definitely see the pattern of converting the positive to negative numbers in previous questions. I have a question about the cleaning up part, why do we set it to the max positive number, is it possible to also set it to just the value 1?

Thank you!

idcxgwf
Автор

Anish Bro i made a pull request on GitHub and tried making your readme file more attractive . pls accept it

mrcodercodes
join shbcf.ru