Kth Missing Positive Number | LeetCode 1539

  Рет қаралды 6,167

Learn Code Repeat

Learn Code Repeat

Күн бұрын

Пікірлер: 9
@NatureLover-oq6uc
@NatureLover-oq6uc 2 жыл бұрын
Logic is just insane...dont know when i will think like this...
@mikedelta658
@mikedelta658 9 ай бұрын
Fantastic. Thank you.
@chandansahu2340
@chandansahu2340 2 жыл бұрын
finest explaination on the whole internet.
@rahulrandhiv
@rahulrandhiv 2 жыл бұрын
in the second approach, you don't need idx, replace it with i
@purplewombat6735
@purplewombat6735 2 жыл бұрын
best explanation of this problem! I feel approach #2 was my missing key to understand approach #3
@rohitsoni2439
@rohitsoni2439 3 жыл бұрын
thanx for explaining
@PJcreationss
@PJcreationss 3 жыл бұрын
Very good explanation
@digvijay1228
@digvijay1228 2 жыл бұрын
Could you please explain why you took arr[idx] - (idx+1) < k condition. What was the intuition behind this. Sorry I couldn't understand, you said if arr[i] - (i+1) == 0 means no missing number, but if it is greater than zero means those many missing numbers. I just can't get to the final condition. correct if i'm wrong
@hksubs
@hksubs 2 жыл бұрын
Thanks , i. like how you progress the code to optimal way. Can you please explain more why you set "idx = i + 1"? can "i" be eliminated?
BS-16. Kth Missing Positive Number | Maths + Binary Search
22:52
take U forward
Рет қаралды 156 М.
Kth Missing Positive Number - Leetcode 1539 - Python
10:00
TechError
Рет қаралды 1,9 М.
Walking on LEGO Be Like... #shorts #mingweirocks
00:41
mingweirocks
Рет қаралды 7 МЛН
the TRUTH about C++ (is it worth your time?)
3:17
Low Level
Рет қаралды 759 М.
Java in 100 Seconds
2:25
Fireship
Рет қаралды 1,3 МЛН
The Unfair Way I Got Good At LeetCode
23:02
Aman Manazir
Рет қаралды 97 М.
Google Data Center 360° Tour
8:29
Google Cloud Tech
Рет қаралды 5 МЛН
How I would learn Leetcode if I could start over
18:03
NeetCodeIO
Рет қаралды 674 М.
Kth Missing Positive Number | Live Coding with Explanation | Leetcode #1539
7:16
How to start Competitive Programming? For beginners!
9:43
Errichto Algorithms
Рет қаралды 1,1 МЛН
Fastest way to learn Data Structures and Algorithms
8:42
Sahil & Sarra
Рет қаралды 251 М.