your solution is running in nlogn time. its not the expected solution
@oded618810 ай бұрын
They requested to solve it with O(n) but your are sorting the array so your solution is O(nlogn). Am I missing somthing?
@harshitkumar89888 ай бұрын
No see must be wrong
@mhamadfawaz46777 ай бұрын
Yes, exactly!
@sahilsaifi4962 Жыл бұрын
This is Video, hard question and understood in 3 mins. Great explaination.😊😊😊
@pratikshabakrola11 ай бұрын
Thank you!
@unemployedbro3 ай бұрын
@@pratikshabakrola need to solve o(n)
@sonasrimu45208 ай бұрын
Useful!❤
@nitin_kaushik162 жыл бұрын
Solution is pretty much cool, but I think O(n) time complexity solution must also be addressed in the video.
@pratikshabakrola2 жыл бұрын
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_kaushik162 жыл бұрын
@@pratikshabakrola Approach 1:- class Solution { public: int firstMissingPositive(vector& nums) { int i,number=1; sort(nums.begin(),nums.end()); for(i=0;i
@India_688 ай бұрын
@@pratikshabakrola😅
@India_688 ай бұрын
Nice😊😊😊
@pratikshabakrola7 ай бұрын
Thanks 😊
@abishekb49684 ай бұрын
Thanku
@vanvothe48172 жыл бұрын
Have a nice day.
@pratikshabakrola2 жыл бұрын
Hello Van, Nice to hear from you. You too have a good day and a happy weekend !
@jacobblack25445 ай бұрын
ma'am don't need not to be sorted to the NlogN be not needed question proper read
@sandeepmishra64785 күн бұрын
I was just watching you only😄😄
@rutikbodkeacademy124711 ай бұрын
mam, can you make video for other leetcode problems.
@pratikshabakrola9 ай бұрын
Hi, Thank you for expressing the interest. If leetcode videos receive more response, I will make more videos on that.