Remove Duplicates from Sorted List (LeetCode 83) | Full Solution with animations & Easy Explanation

  Рет қаралды 14,326

Nikhil Lohia

Nikhil Lohia

Күн бұрын

Пікірлер: 27
@subratamondal5385
@subratamondal5385 Жыл бұрын
Please continue your problem-solving series, I learned new concepts from hear. It helps me a lot. Thanks for your effort.🙂
@vamshisundupalle6141
@vamshisundupalle6141 Жыл бұрын
during clg days i can't even solve a problem because of you i'm trying to solve problems .and your approach is superb and learning a lot from you
@mariapaderina5992
@mariapaderina5992 Жыл бұрын
Great job! Please keep doing this, I will support
@nikoo28
@nikoo28 Жыл бұрын
Thanks a lot. Please share as much as possible :) www.buymeacoffee.com/studyalgorithms
@abhishekkeshri3974
@abhishekkeshri3974 Жыл бұрын
i already solved it in optimal way but still watching it because it always helps me to think in a different way. thanks
@NikitaNair
@NikitaNair Ай бұрын
Wowww amazing!!!
@hunorvadasz-perhat6001
@hunorvadasz-perhat6001 Жыл бұрын
Such a brilliant idea to start with a brute-force approach then moving onto a more efficient solution!
@safar19899
@safar19899 Жыл бұрын
Thank you for creating these informative and user-friendly videos. Your explanations are clear and easy to understand. I appreciate the effort you put into making these valuable resources.
@nikoo28
@nikoo28 Жыл бұрын
I hope I keep upto your expectations :)
@samiurshahin9857
@samiurshahin9857 Жыл бұрын
your awasome sir ❤❤
@learning_trespasser
@learning_trespasser Жыл бұрын
thanks bro, I didn't know about prev.next=null
@etc3776
@etc3776 7 күн бұрын
I too struggled with this problem because i did not do this step.
@vaishnavim856
@vaishnavim856 7 ай бұрын
Plz write an efficient code that passes all the test cases, this code will definitely give the null pointer exception. To overcome that u have to add an if loop in the 2nd line which contains if( head == null) return head;
@SAINARMADACHAMARTHI
@SAINARMADACHAMARTHI 7 ай бұрын
thank you,this helps me to pass all the test cases.
@sreejasree7427
@sreejasree7427 5 ай бұрын
thank you sir
@81_monish_roy74
@81_monish_roy74 3 ай бұрын
Thanks bro
@ganeshjaggineni4097
@ganeshjaggineni4097 Жыл бұрын
NICE SUPER EXCELLENT MOTIVATED
@nikoo28
@nikoo28 Жыл бұрын
Jai mata di!! Let's rock
@dhanushbandi9253
@dhanushbandi9253 Жыл бұрын
bro awesome bro...bro can you make like these questions which are asked in interviews and make placement series in java ...... this will change life of a student🙂
@nikoo28
@nikoo28 Жыл бұрын
i have started adding companies to the thumbnail of videos. Gonna provide more resources soon enough. Stay tuned :)
@ankithareddy4497
@ankithareddy4497 Жыл бұрын
can you please solve plus one leet code program.
@nikoo28
@nikoo28 Жыл бұрын
Maybe I can solve it sometime in the future, but personally I would never ask/expect such a question in an interview.
@prashanthshetty8337
@prashanthshetty8337 10 ай бұрын
this can be done without using prev pointer. /** * Definition for singly-linked list. * type ListNode struct { * Val int * Next *ListNode * } */ func deleteDuplicates(head *ListNode) *ListNode { if head == nil || head.Next == nil { return head } cur := head for cur != nil && cur.Next != nil { if cur.Val == cur.Next.Val { cur.Next = cur.Next.Next continue } cur = cur.Next } return head }
@sureshkannan6313
@sureshkannan6313 Жыл бұрын
82. Remove Duplicates from Sorted List II
@jeebanranjandas48
@jeebanranjandas48 Жыл бұрын
Hii bro ! This code shows Nullpointer exception. # ListNode temp = prev.next ; (this will show exception) I think this code should be written above the second line of this code. # if(head == null) return head ; And bro, I have watched many of your videos, and I liked your way of writing code in the efficient way.😇💙
@trishalasrivastava4780
@trishalasrivastava4780 11 ай бұрын
Yeah, I agree. Thanks for bringing this thing up.
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
2024-11-08 Maps Guest Demo with CamoAG
17:22
Omni Analytics
Рет қаралды 187
Remove Duplicates from Sorted List - Leetcode 83 - Python
10:47
L25. Merge K Sorted Lists | Multiple Approaches
30:02
take U forward
Рет қаралды 62 М.
Remove Duplicates From Sorted Array | Brute | Optimal
10:47
take U forward
Рет қаралды 134 М.
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
Sahil & Sarra
Рет қаралды 693 М.