Longest Increasing Subsequence NlogN | Leetcode

  Рет қаралды 1,470

Techdose

Techdose

Күн бұрын

This video explains finding the longest increasing subsequence with an optimal O(NlogN) technique using binary search algorithm.
----------------------------------------------------------------------------------------------------------------------------------------------------------------
🟣 JOIN our 𝐋𝐈𝐕𝐄 𝐢𝐧𝐭𝐞𝐫𝐯𝐢𝐞𝐰 𝐭𝐫𝐚𝐢𝐧𝐢𝐧𝐠 𝐩𝐫𝐨𝐠𝐫𝐚𝐦 through WhatsApp query: +91 8918633037
🟣 𝐂𝐡𝐞𝐜𝐤𝐨𝐮𝐭 𝐚𝐥𝐥 𝐨𝐮𝐫 𝐂𝐨𝐮𝐫𝐬𝐞𝐬: techdose.co.in/
🔵 LinkedIn: / surya-pratap-kahar
🔴 INSTAGRAM: / techdose_official
🟢 𝐓𝐞𝐜𝐡𝐝𝐨𝐬𝐞-𝟏𝟎𝟎 𝐬𝐡𝐞𝐞𝐭: docs.google.co...
---------------------------------------------------------------------------------------------------------------------------------------------------------------
𝐋𝐈𝐒 𝐰𝐢𝐭𝐡 𝐃𝐏: • Longest increasing sub...
𝐂𝐎𝐃𝐄 𝐋𝐈𝐍𝐊: gist.github.co...

Пікірлер: 4
@pratyushshrivastav8530
@pratyushshrivastav8530 4 ай бұрын
We can find out the length of the LIS but the elements involved in the LIS might not always be true with this solution. for input { 2,4,6,8,1} the LIS will be {2,4,6,8} but the nlogn solution will give us the LIS as {1,4,6,8} which is not correct. The nlogn solution can only be used when we require only the length of the LIS and not the elements involved in it.
@techdose4u
@techdose4u 4 ай бұрын
Yes correct. Its only for finding length of LIS.
@apbh
@apbh Ай бұрын
Thank you!
@Divya-qt1cf
@Divya-qt1cf 4 ай бұрын
Wow 🎉
Cute
00:16
Oyuncak Avı
Рет қаралды 12 МЛН
Inside Out 2: ENVY & DISGUST STOLE JOY's DRINKS!!
00:32
AnythingAlexia
Рет қаралды 12 МЛН
Smallest Subarrays With Maximum Bitwise OR | Leetcode 2411
22:38
Longest Increasing Subsequence - LeetCode 300 - Python - O(nlog(n))
16:13
Rails World 2024 Opening Keynote - David Heinemeier Hansson
1:05:46
Ruby on Rails
Рет қаралды 50 М.
Increasing Triplet Subsequence | Leetcode #334
18:57
Techdose
Рет қаралды 3,9 М.
Two Sum | Leetcode #1
16:21
Techdose
Рет қаралды 9 М.
DP 43. Longest Increasing Subsequence | Binary Search | Intuition
16:27
Box Stacking Problem | Dynamic Programming | LIS
36:03
Techdose
Рет қаралды 27 М.
LeetCode 300. Longest Increasing Subsequence - O(n log n)
10:24