Remove Duplicates from Sorted List | (Leetcode 83) | Google interview question

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

CodingWithPrakash

CodingWithPrakash

Күн бұрын

Пікірлер: 8
@AmitVerma-xi5xm
@AmitVerma-xi5xm 10 ай бұрын
👍
@priyanshu_chk
@priyanshu_chk Жыл бұрын
Thank you
@CodingWithPrakash_
@CodingWithPrakash_ 7 ай бұрын
✅ Useful Links 𝐈𝐧𝐬𝐭𝐚𝐠𝐫𝐚𝐦 - instagram.com/codingwithprakash/ 𝐖𝐡𝐚𝐭𝐬𝐀𝐩𝐩𝐂𝐡𝐚𝐧𝐧𝐞𝐥 - whatsapp.com/channel/0029VaACtTa4tRrpDCQc5f44 𝐋𝐢𝐧𝐤𝐞𝐝𝐢𝐧 - www.linkedin.com/in/prakash-shukla/
@mdrehan5845
@mdrehan5845 Жыл бұрын
I have written the same code but its giving me an runtime error exception stating that in while loop line its Getting a NULL POINTER Exception.Below is my code class Solution { public ListNode deleteDuplicates(ListNode head) { if(head==null || head.next==null){ return head; } ListNode temp=head; while(temp.next!=null){
@sakshamsinha1763
@sakshamsinha1763 4 ай бұрын
hmlog node ko delete kyu ni krte pls tell me
@CodingWithPrakash_
@CodingWithPrakash_ 4 ай бұрын
Java will automatically remove unused object by its property of garbage collection We can just unlink node and we are good to go
@sakshamsinha1763
@sakshamsinha1763 4 ай бұрын
@@CodingWithPrakash_ Thanx
@AmitVerma-xi5xm
@AmitVerma-xi5xm 10 ай бұрын
👍
Subsets 2 (Leetcode 90) - Medium (Hindi) | Facebook Interview Question
10:11
Remove Duplicates from Sorted List - Leetcode 83 - Python
10:47
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 85 МЛН
Accompanying my daughter to practice dance is so annoying #funny #cute#comedy
00:17
Funny daughter's daily life
Рет қаралды 26 МЛН
Farmer narrowly escapes tiger attack
00:20
CTV News
Рет қаралды 13 МЛН
Introduction to Linked Lists (Data Structures & Algorithms #5)
18:47
Remove Linked List Elements | (Leetcode 203) |  Google Interview question
11:39
HOW TO GET GOOD AT LEETCODE
18:16
James Peralta
Рет қаралды 1,1 М.
My First Euro Trip | Stand-up Comedy by Aakash Gupta
15:47
Aakash Gupta
Рет қаралды 11 МЛН
Remove Loop in Linked List | Java | Interview Question | GeeksForGeeks
17:44
LeetCode in Java | Easy Question | Remove Duplicates from Sorted Array
14:49
Top 7 Algorithms for Coding Interviews Explained SIMPLY
21:22
Codebagel
Рет қаралды 448 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 85 МЛН