First Missing Positive Leetcode

  Рет қаралды 3,313

Pratiksha Bakrola

Pratiksha Bakrola

Күн бұрын

Пікірлер: 27
@ChenMosh
@ChenMosh 5 ай бұрын
your solution is running in nlogn time. its not the expected solution
@oded6188
@oded6188 10 ай бұрын
They requested to solve it with O(n) but your are sorting the array so your solution is O(nlogn). Am I missing somthing?
@harshitkumar8988
@harshitkumar8988 8 ай бұрын
No see must be wrong
@mhamadfawaz4677
@mhamadfawaz4677 7 ай бұрын
Yes, exactly!
@sahilsaifi4962
@sahilsaifi4962 Жыл бұрын
This is Video, hard question and understood in 3 mins. Great explaination.😊😊😊
@pratikshabakrola
@pratikshabakrola 11 ай бұрын
Thank you!
@unemployedbro
@unemployedbro 3 ай бұрын
@@pratikshabakrola need to solve o(n)
@sonasrimu4520
@sonasrimu4520 8 ай бұрын
Useful!❤
@nitin_kaushik16
@nitin_kaushik16 2 жыл бұрын
Solution is pretty much cool, but I think O(n) time complexity solution must also be addressed in the video.
@pratikshabakrola
@pratikshabakrola 2 жыл бұрын
Hello Nitin, Thank you for pointing that out. If you would like to share anything on that, please add it in the comments here. I highly appreciate it. Thank you
@nitin_kaushik16
@nitin_kaushik16 2 жыл бұрын
@@pratikshabakrola Approach 1:- class Solution { public: int firstMissingPositive(vector& nums) { int i,number=1; sort(nums.begin(),nums.end()); for(i=0;i
@India_68
@India_68 8 ай бұрын
​@@pratikshabakrola😅
@India_68
@India_68 8 ай бұрын
Nice😊😊😊
@pratikshabakrola
@pratikshabakrola 7 ай бұрын
Thanks 😊
@abishekb4968
@abishekb4968 4 ай бұрын
Thanku
@vanvothe4817
@vanvothe4817 2 жыл бұрын
Have a nice day.
@pratikshabakrola
@pratikshabakrola 2 жыл бұрын
Hello Van, Nice to hear from you. You too have a good day and a happy weekend !
@jacobblack2544
@jacobblack2544 5 ай бұрын
ma'am don't need not to be sorted to the NlogN be not needed question proper read
@sandeepmishra6478
@sandeepmishra6478 5 күн бұрын
I was just watching you only😄😄
@rutikbodkeacademy1247
@rutikbodkeacademy1247 11 ай бұрын
mam, can you make video for other leetcode problems.
@pratikshabakrola
@pratikshabakrola 9 ай бұрын
Hi, Thank you for expressing the interest. If leetcode videos receive more response, I will make more videos on that.
@swaraj7710
@swaraj7710 Жыл бұрын
pretty awesome solution
@pratikshabakrola
@pratikshabakrola Жыл бұрын
Thank you Swaraj 🙏🏼
@chetanyapratapsingh7068
@chetanyapratapsingh7068 Жыл бұрын
Wow solutiion....make some more videos
@pratikshabakrola
@pratikshabakrola Жыл бұрын
Hello Chetanya, Will make more videos soon!
@RajChauhan-iu3dc
@RajChauhan-iu3dc 8 ай бұрын
I don't think it was hard 🙂
@pratikshabakrola
@pratikshabakrola 6 ай бұрын
glad you think so!
Leetcode 11. Container with Most Water
4:36
Pratiksha Bakrola
Рет қаралды 1,1 М.
Não sabe esconder Comida
00:20
DUDU e CAROL
Рет қаралды 62 МЛН
Ouch.. 🤕⚽️
00:25
Celine Dept
Рет қаралды 33 МЛН
I tricked MrBeast into giving me his channel
00:58
Jesser
Рет қаралды 27 МЛН
First Missing Positive - Leetcode 41 - Python
21:22
NeetCode
Рет қаралды 112 М.
Amazon's TPM: The System Design Interview Guide
24:19
Pratiksha Bakrola
Рет қаралды 35 М.
How to Ace a System Design Interview(From Amazon TPM)
12:21
Pratiksha Bakrola
Рет қаралды 13 М.
Leetcode 21. merge two sorted lists
12:20
Pratiksha Bakrola
Рет қаралды 893
Amazon Coding Interview Question - First Missing Positive (LeetCode)
20:47
How I Failed the Google Coding Interview (and lessons I learned)
14:24