Kth Smallest element in a matrix | Leetcode

  Рет қаралды 4,768

Techdose

Techdose

6 ай бұрын

🟣 JOIN our 𝐋𝐈𝐕𝐄 𝐢𝐧𝐭𝐞𝐫𝐯𝐢𝐞𝐰 𝐭𝐫𝐚𝐢𝐧𝐢𝐧𝐠 𝐩𝐫𝐨𝐠𝐫𝐚𝐦 through whatsapp query: +91 8918633037
🟣 𝐂𝐡𝐞𝐜𝐤𝐨𝐮𝐭 𝐚𝐥𝐥 𝐨𝐮𝐫 𝐂𝐨𝐮𝐫𝐬𝐞𝐬: techdose.co.in/
This video explains how to find the kth smallest element in a matrix. We have discussed multiple techniques for solving this problem starting from bruteforce to heap and ending with the most optimal binary search technique.
----------------------------------------------------------------------------------------------------------------------------------------------------------------
🟢 𝐓𝐞𝐜𝐡𝐝𝐨𝐬𝐞-𝟏𝟎𝟎 𝐬𝐡𝐞𝐞𝐭: docs.google.com/spreadsheets/...
🟢 TELEGRAM channel ( 𝐏𝐃𝐅 𝐨𝐟 𝐯𝐢𝐝𝐞𝐨): t.me/codewithTECHDOSE
🔵 LinkedIn: / surya-pratap-kahar-47b...
🔴INSTAGRAM: / surya.pratap.k
---------------------------------------------------------------------------------------------------------------------------------------------------------------
Sliding Window Maximum: • Sliding Window Maximum...
𝐂𝐎𝐃𝐄 𝐋𝐈𝐍𝐊: gist.github.com/SuryaPratapK/...

Пікірлер: 9
@RishinderRana
@RishinderRana 3 ай бұрын
The best video for this problem so far
@techdose4u
@techdose4u Ай бұрын
Thanks
@debapriyachandra1767
@debapriyachandra1767 5 ай бұрын
We can optimise the count function! Using 2 pointers! You can look into the discussion section
@AkashGupta-sh1pd
@AkashGupta-sh1pd 3 ай бұрын
A very important point to mention here is that mid element may or may not exists the the matrix But since with keep high = mid (even for the case count_smaller == k), we sort of tend to converge to the lowest element in the matrix where count_smaller == k. Hope this helps, if not I will post link to the solution where I have written print stmt to have full clarity
@akulajyoshnavi
@akulajyoshnavi 2 ай бұрын
thanks..!!
@prasadm3614
@prasadm3614 5 ай бұрын
Loved it !
@techdose4u
@techdose4u Ай бұрын
Thanks
@nandanimadhukar
@nandanimadhukar Ай бұрын
very good explanation and technique
@techdose4u
@techdose4u Ай бұрын
Thanks
Remove K digits | Build lowest number | Leetcode #402
15:30
Techdose
Рет қаралды 88 М.
Опасность фирменной зарядки Apple
00:57
SuperCrastan
Рет қаралды 12 МЛН
MISS CIRCLE STUDENTS BULLY ME!
00:12
Andreas Eskander
Рет қаралды 20 МЛН
Closest Prime Numbers in Range | Leetcode #2523
10:46
Techdose
Рет қаралды 1,4 М.
Find Median from Data Stream
29:28
Techdose
Рет қаралды 54 М.
All nodes distance K in binary tree | Leetcode #863
12:45
Techdose
Рет қаралды 8 М.
Leetcode 378. Kth Smallest Element in a Sorted Matrix [Java]
10:59
if else statement
Рет қаралды 7 М.
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
Sahil & Sarra
Рет қаралды 633 М.
The moment we stopped understanding AI [AlexNet]
17:38
Welch Labs
Рет қаралды 853 М.
Increasing Triplet Subsequence | Leetcode #334
18:57
Techdose
Рет қаралды 2,4 М.
Validate IP Address | Regex | Leetcode #468
26:32
Techdose
Рет қаралды 38 М.