Merge Nodes in Between Zeros | Leetcode 2181 | Contest 281 | Linked list O(n) 🔥🔥

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

Coding Decoded

Coding Decoded

Күн бұрын

Here is the solution to "Merge Nodes in Between Zeros" leetcode question. Hope you have a great time going through it.
🔴 Question:leetcode.com/contest/weekly-c...
1) 0:00 Explaining the problem out loud
2) 1:50 Understanding the Algorithm
3) 2:00 Approach
3) 5:00 Coding it up
🔥Don't click: bit.ly/32XIXbU
🔥Linkedin: bit.ly/3n65udU
🔥Insta: bit.ly/31TV5ur
👉 Solutions github.com/Sunchit/Coding-Dec...
🔥🔥🔥🔥👇👇👇 For discussion/feedback/humour/doubts/new openings
Feel free to join discord / discord
🔴 Checkout the series: 🔥🔥🔥
👉 Leetcode Interview experiences and tips : • Playlist
👉 Leetcode contests: www.youtube.com?list=PLEI-q7w3s9gRwAEYzYkvVTsYHDi2-ffdL
👉 Leetcode System Design: • System Design
👉 Leetcode LinkedList: • Coding Decoded LinkedL...
👉 Leetcode Stack: • Coding Decoded Stack S...
👉 Leetcode Binary Search: • Coding Decoded BinaryS...
👉 Leetcode Tree: • Coding Decoded Tree Se...
👉 Leetcode Dyanmic Programming: • Coding Decoded Dynamic...
👉 Leetcode Hard: • LeetCode Hard Problems
👉 Leetcode Heap: • Coding Decoded Heap Se...
👉 Building Coding Aptitude: • Building Coding Aptitude
👉 Leetcode Map: • Coding Decoded Map Ser...
👉 Leetcode Two Pointer: • Coding Decoded Two Poi...
👉 Leetcode Backtracking: • Leetcode Backtracking ...
👉 Leetcode Graph Traversal: • Coding Decoded Graph T...
👉 Leetcode Trie: • Coding Decoded Trie Se...
👉 Leetcode Union Find: • Coding Decoded Union F...
👉 Leetcode BFS Graph Problems: • Coding Decoded BFS Ser...
👉 Leetcode Matrix Problems: • Coding Decoded Matrix ...
👉 Leetcode Easy: • Leetcode Easy Problems
👉 Leetcode Bit Manipulation: • Coding Decoded Bit Man...
🔥🔥🔥 Leetcode Monthly Contest Playlist
👉 Leetcode December 2021: www.youtube.com?list=PLEI-q7w3s9gRN3LsF0zArurVSz3HQyKZP
👉 Leetcode November 2021: www.youtube.com?list=PLEI-q7w3s9gT2IeinxSocuxyOKMB4H2zF
👉 Leetcode October 2021: www.youtube.com?list=PLEI-q7w3s9gTNU412xW8kV1xQ8upnrN0a
👉 Leetcode September 2021: www.youtube.com?list=PLEI-q7w3s9gTNU412xW8kV1xQ8upnrN0a
👉 Leetcode August2021: www.youtube.com?list=PLEI-q7w3s9gTEQxR2uR-g8DVhSTb2ZAx1
👉 Leetcode July 2021: www.youtube.com?list=PLEI-q7w3s9gRV3Bn3VO1rtgkA0wNkIm-y
👉 Leetcode June 2021: www.youtube.com?list=PLEI-q7w3s9gRGYr0jtVjqir5_8SpnQ6Og
👉 Leetcode May 2021: www.youtube.com?list=PLEI-q7w3s9gS8UNo22UA4O3_YjnQczyNp
👉 Leetcode April 2021: www.youtube.com?list=PLEI-q7w3s9gStjIegCW3i84AI9L2KjGhJ
👉 Leetcode March 2021: www.youtube.com?list=PLEI-q7w3s9gTbYRnbU7Np0_-v_GwxYGOb
👉 Leetcode Feb 2021: www.youtube.com?list=PLEI-q7w3s9gRNUjYwtb53A7SXSCQaJguT
👉 Leetcode Jan 2021: www.youtube.com?list=PLEI-q7w3s9gR8EhTsObcgM74NnIiAcRWm
👉 Leetcode December 2020: www.youtube.com?list=PLEI-q7w3s9gQIB_urBmMV04f_NBelXJEP
PS : Please increase the speed to 1.25X

Пікірлер: 9
@pavniujla654
@pavniujla654 2 жыл бұрын
I solved 3 questions thanks to you..
@trevorPhillips284
@trevorPhillips284 2 жыл бұрын
Easy contest, solved first 3 but couldn't solve 4th
@arnabmishra9638
@arnabmishra9638 2 жыл бұрын
too good
@jiganeshpatil1472
@jiganeshpatil1472 2 жыл бұрын
We can also do this without creating new Linkedlist - like putting sum in zeros and removing nodes I guess. Not sure Is it right ?
@randomlyasked
@randomlyasked 2 жыл бұрын
Yes we can. I created a sum array and then replaced starting nodes with sums and breaked off remaining nodes
@CodeWithSunchitDudeja
@CodeWithSunchitDudeja 2 жыл бұрын
Usually we don't corrupt the input..
@054_heenaahmed8
@054_heenaahmed8 2 жыл бұрын
@@CodeWithSunchitDudeja is corrupting the input not a good programming technique ?? I mean is it not considered good .. if we do so in interview
@CodeWithSunchitDudeja
@CodeWithSunchitDudeja 2 жыл бұрын
@@054_heenaahmed8 it depends on question to question, unless not specified you should avoid doing it
@054_heenaahmed8
@054_heenaahmed8 2 жыл бұрын
@@CodeWithSunchitDudeja thanks for replying ..I will keep this in mind :)
Merge Nodes in Between Zeros - Leetcode 2181 - Python
11:24
NeetCodeIO
Рет қаралды 6 М.
Playing hide and seek with my dog 🐶
00:25
Zach King
Рет қаралды 35 МЛН
Useful gadget for styling hair 🤩💖 #gadgets #hairstyle
00:20
FLIP FLOP Hacks
Рет қаралды 10 МЛН
Merge Nodes in Between Zeros | LeetCode 2181 | Coders Camp
11:33
Coders Camp
Рет қаралды 1,2 М.
Water powered timers hidden in public restrooms
13:12
Steve Mould
Рет қаралды 661 М.
The Algorithm Behind Spell Checkers
13:02
b001
Рет қаралды 409 М.
Big-O Notation - For Coding Interviews
20:38
NeetCode
Рет қаралды 439 М.
LeetCode 2181 : Merge Nodes in Between Zeros
6:43
Engineering Digest
Рет қаралды 954
25 Nooby Pandas Coding Mistakes You Should NEVER make.
11:30
Rob Mulla
Рет қаралды 265 М.
Playing hide and seek with my dog 🐶
00:25
Zach King
Рет қаралды 35 МЛН