Тёмный

3Sum (Leetcode 15) - Medium (Hindi) 

CodingWithPrakash
Подписаться 20 тыс.
Просмотров 40 тыс.
50% 1

✅ Useful Links
𝐈𝐧𝐬𝐭𝐚𝐠𝐫𝐚𝐦 - / codingwithprakash
𝐖𝐡𝐚𝐭𝐬𝐀𝐩𝐩𝐂𝐡𝐚𝐧𝐧𝐞𝐥 - whatsapp.com/c...
𝐋𝐢𝐧𝐤𝐞𝐝𝐢𝐧 - / prakash-shukla
✅ 𝐋𝐞𝐞𝐭𝐜𝐨𝐝𝐞 𝐏𝐥𝐚𝐲𝐥𝐢𝐬𝐭 - • Leetcode solutions
Sum (Leetcode 15)
leetcode.com/p...
Two Sum (Sorted) Leetcode 167 / qhkrz0c7
Two Sum (Not Sorted) Leetcode 1 • Two Sum (Leetcode 1) -...
Music Credit
Track: Julius Dreisig & Zeus X Crona - Invisible [NCS Release]
Music provided by NoCopyrightSounds.
Watch: • Julius Dreisig & Zeus ...
Free Download / Stream: ncs.io/InvisibleY

Опубликовано:

 

11 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 42   
@javascript_developer
@javascript_developer Год назад
nice explained..
@satyanarayanmohanty3415
@satyanarayanmohanty3415 3 года назад
Great explanation.
@vivekkumarsingh1123
@vivekkumarsingh1123 2 года назад
nice explanation
@shrutikhajanchi2158
@shrutikhajanchi2158 2 года назад
Amazing explanation. For test case [-2,0,1,1,2] , the solution don't consider -2,1,1 combination as the duplicates are skipped but it is still valid. How it is handled as the solution is already accepted?
@__priyanshu__sharma____
@__priyanshu__sharma____ Год назад
our answer is containing only one {-2,1,1 }. If your answer contain another {-2,1,1 } then we have to skip. So carefully read the edge case given in the question
@startpythonwithravishankar9344
@startpythonwithravishankar9344 2 года назад
no need to check c duplicate because if b is not duplicate then list is unique.because any num is duplicate means list can have duplicates. it can save our time more
@ayeshamalik8015
@ayeshamalik8015 3 года назад
Well explained 👍👌
@kbarot3886
@kbarot3886 Год назад
Helpful
@CodingWithPrakash_
@CodingWithPrakash_ 4 месяца назад
✅ Useful Links 𝐈𝐧𝐬𝐭𝐚𝐠𝐫𝐚𝐦 - instagram.com/codingwithprakash/ 𝐖𝐡𝐚𝐭𝐬𝐀𝐩𝐩𝐂𝐡𝐚𝐧𝐧𝐞𝐥 - whatsapp.com/channel/0029VaACtTa4tRrpDCQc5f44 𝐋𝐢𝐧𝐤𝐞𝐝𝐢𝐧 - www.linkedin.com/in/prakash-shukla/
@prosinging7853
@prosinging7853 2 года назад
badiyaa video
@nikhildwivedi956
@nikhildwivedi956 Год назад
is this the most optimized sol??
@MilindGupta
@MilindGupta 3 года назад
Just came on from your newly created website... Want to ask like you mentioned somewhere that you have privated some videos so the link u r going mention on the website is that now the crct way to approach the problem... I am saying this bcoz u told the previous problem were not having the correct way to approach
@CodingWithPrakash_
@CodingWithPrakash_ 3 года назад
Yes I will be making lot of videos in next 60 days I want you to build intuition that is basically right way to learn and teach
@playwithvihaan7601
@playwithvihaan7601 Год назад
Nice video.The link to access the Free SSA course is broken.
@prosinging7853
@prosinging7853 2 года назад
is ur site having issue. while opening it is showing it is a mailware- go back
@prosinging7853
@prosinging7853 2 года назад
ek sawal: for dupblicate u are checking current index with next index , agar first index and some index in middle matches.
@tejasrockz
@tejasrockz 2 года назад
Bhai sabse pehle toh usne sort hi kiya hai array nums Without sort :- [1, 0,5, 2, -1, 1] With sort :- [-1, 0, 1, 1, 2, 5] Toh middle wale ke saath jese tu puch raha vaise nahi hoga kyu ki compare bas immediate next se hi hoga. withSort me dono 1 ko deekh chipak gaye hai
@HimanshuSingh-ob9qo
@HimanshuSingh-ob9qo 3 года назад
👌👌👌👌👌👌🙏
@mradulsharma4294
@mradulsharma4294 2 года назад
eroor aa rah hh sir apke wale code me
@CodingWithPrakash_
@CodingWithPrakash_ 2 года назад
Maine to leetcode pe submit kra hai video mai passing all cases Compare your code with mine Find bug
@CodingWithPrakash_
@CodingWithPrakash_ Год назад
Debug kro
@sahilsingh5695
@sahilsingh5695 Год назад
@@CodingWithPrakash_ ha hogya thanks
@abidmerchant4154
@abidmerchant4154 3 года назад
Where are your videos in which you explained Permutation (Backtracking problem)
@CodingWithPrakash_
@CodingWithPrakash_ 3 года назад
Removed
@abidmerchant4154
@abidmerchant4154 3 года назад
@@CodingWithPrakash_ Can I access it somewhere, I found no video on youtube which explained it better than that.
@CodingWithPrakash_
@CodingWithPrakash_ 3 года назад
I will make new one
@abidmerchant4154
@abidmerchant4154 3 года назад
@@CodingWithPrakash_ Thanks a lot bro :-)
@MilindGupta
@MilindGupta 3 года назад
Why you are not uploading any videos from past 1 month?
@CodingWithPrakash_
@CodingWithPrakash_ 3 года назад
I am launching crash course and complete preparation plan in 15 days
@MilindGupta
@MilindGupta 3 года назад
@@CodingWithPrakash_ ohh great would love to join that course at that time then hope it would be easy for beginners too with c++ ...
@CodingWithPrakash_
@CodingWithPrakash_ 3 года назад
I will focus on the detail approach but my codes will be in java
@PrateekDas-yn8ce
@PrateekDas-yn8ce Год назад
The actual example is nums = [-1,0,1,2,-1,-4], after sorting [-4, -1, -1, 0, 1, 2 ], why you are not taking this example.
@rakesh_bahel
@rakesh_bahel 3 месяца назад
where this code find ?
@CodingWithPrakash_
@CodingWithPrakash_ 3 месяца назад
Leetcode explore section
@pranjuljain6025
@pranjuljain6025 Год назад
If a non-technical person visits your video and see in thumbnail 3sum i don't know what will he thinks 😂
@jatinukey4062
@jatinukey4062 Год назад
I am technical but still now i always 3sum has something other😂
@meme_Overflow
@meme_Overflow Год назад
Nhi 2 sum hi thik tha bhai😂
@AmanKumar-dx1xn
@AmanKumar-dx1xn 3 года назад
Bro please reupload your backtracking videoes i didn't find any better explanation anywhere....humble request please!!!
@CodingWithPrakash_
@CodingWithPrakash_ 3 года назад
Wait for my course
@AmanKumar-dx1xn
@AmanKumar-dx1xn 3 года назад
@@CodingWithPrakash_ thanks alot man ...eagerly waiting for it
@maheshwarang4000
@maheshwarang4000 Год назад
List res = new ArrayList(); Arrays.sort(nums); for (int i = 0; i < nums.length - 2; i++) { if (i == 0 || nums[i] != nums[i - 1]) { int low = i + 1; int high = nums.length - 1; int target = -nums[i]; while (low < high) { if (nums[low] + nums[high] == target) { List list = new ArrayList(); list.add(nums[i]); list.add(nums[low]); list.add(nums[high]); res.add(list); while (low < high && nums[low] == nums[low + 1]) low++; while (low < high && nums[high] == nums[high - 1]) high--; low++; high--; } else if (nums[low] + nums[high] < target) { low++; } else { high--; } } } } return res;
Далее
3 Sum | Brute -  Better - Optimal with Codes
38:25
Просмотров 304 тыс.
А ВЫ ЛЮБИТЕ ШКОЛУ?? #shorts
00:20
Просмотров 1,9 млн
iPhone 16 - презентация Apple 2024
01:00
Просмотров 129 тыс.
3sum | leetcode 15 | Hindi
21:48
Просмотров 29 тыс.
DSA Phir se with Sumeet | Leetcode 15 | 3Sum
18:03
Просмотров 4,2 тыс.
Two Sum (Leetcode 1) - Easy (Hindi)
14:20
Просмотров 163 тыс.
4 Sum | Brute - Better - Optimal with Codes
28:47
Просмотров 164 тыс.