Kth Missing Positive Number (LeetCode 1539) | Full Solution with intuition, animations and visuals

preview_player
Показать описание


Chapters:
00:00 - Intro
00:44 - Problem Statement
03:47 - Thought process
09:02 - One more test case
12:26 - Using Binary Search
13:52 - Dry-run of Code
15:04 - A special case
17:13 - Final Thoughts

📚 Links to topics I talk about in the video:

📖 Reference Books:

🎥 My Recording Gear:

💻 Get Social 💻

#leetcode #programming #interview
Рекомендации по теме
Комментарии
Автор

What a simple and easy explanation. Better than striver's video.

Servant-HKM-Pune
Автор

The most underrated channel with the best video explanations🙂🙂👍👍

motupatlu-ttfe
Автор

Really this guy needs a lot of support....
Thank you for explaining this problem and making me to understand it 😊.
Really hats off for your explanation

Iam_Srikanth_
Автор

Though I'm solving LeetCode problems using JavaScript, but can understand it in Java too. Thank you for such great explanations.

shreyak
Автор

Whatever problems Nikhil solves, he makes sure that the concept is explained clearly. 😄

Satya-gt
Автор

Thanks for making the video despite the views

thalap_-
Автор

Hey Nikhil, Thanks for the awesome explanation. I attempted to come up with a brute-force solution as per the explanation provided in the video to locate the kth positive element, but unfortunately, it's not passing all of the test cases. Could you please share the brute-force implementation of this problem.

vipul
Автор

The explanation is excellent. However I have 2 questions - 1. Why we take right as arr.length and not arr.length-1, 2. How did we arrive at return left + k?

sumangupta
Автор

I wish you had done a dry run of the example with the code. The explanation helped but the code logic doesn't exactly follow your explanation.

bhudevsahu
Автор

Why didn't you take right = arr.length -1;

adityaarya
Автор

Who came here after not understanding strivers brute force 😂

t.jvlogs
Автор

19:04, 10 July, watching.
Red cloth washed at 18:53, 10 July.

jayeshpatil
welcome to shbcf.ru