Odd Even Linked List | LeetCode 328 | Coding Interview Tutorial

preview_player
Показать описание
Odd Even Linked List solution: LeetCode 328

AFFILIATE LINKS
If you're interested in learning algorithms, these are great resources.

💲 All coupons and discounts 💲

Odd Even Linked List | LeetCode 328 | Coding Interview
#oddevenlinkedlist #leetcode #algorithms #terriblewhiteboard #codinginterview

Click the time stamp to jump to different parts of the video.
00:00 Title
00:06 Problem readout
00:57 Whiteboard solution
06:43 Coding solution
09:41 Result and outro
Рекомендации по теме
Комментарии
Автор

If there are any videos you'd like me to make or if you have any ideas on how to optimize this solution, let me know!

TerribleWhiteboard
Автор

Trying to prep for interviews while also working a full time SWE job is mentally destroying, luckily your videos do a great job of walking through most of the problems we'll encounter, thank you.

AdamDevigili
Автор

Thanks again for making more of these! Easily one of the best pages on YT for simplifying/solving these Leetcode questions

asherintech
Автор

Thank you so much for posting these! Love your explanations! I didn't even know the iPad Pro had drawing capabilities in the notes section, that's actually a great idea!

LeBronJames-nsto
Автор

I am so grateful there are people like you in this world! Your videos/tutorials are incredible. The quality of your explanations is unmatched and keeps my short attention span in check. Thank you!

leightonfritze
Автор

Subscribed !! Awesome explanation as usual. I have been to tons of channels but the way you explain is the best. Specially the white boarding part, because visualization clears up things faster. Keep up the good work !!

vatsrahul
Автор

Hey there. Just wanted to say that I really really appreciate you taking the time to help us all out by making these videos. Your explanations are always very clear and everything is always understandable. I am currently a software engineering student and have been trying to grind out more leetcode questions to further deepen my understanding of algorithms. If you have any advice for young students like me I would greatly appreciate it! Take care

SameerKhan-vtyo
Автор

I spent several hours on this problem and perused several dead ends. Your solution is very smart but was this your first idea for a solution? Just curious if an advanced programmer would easily hone in on this elegant solution or if they would flounder a bit at first. My goal with this question is to try to improve my problem analysis before I start coding.

bertbrecht
Автор

Best explanation!!!! Thank you so much!! You saved so much time to understand this.

gulinatayier
Автор

thanks for explaining so well, would have been good to give use cases of Singly Linked List (and a real life example of when a Linked List is reordered in this way, if any, just a thought).

patrickchan
Автор

When I think of logic, I am getting only the brute force logic. But if I see the answer I am understanding the logic and if any similar kind of problems occurs, I am able to use this logic in some other problems.

But I am never getting the optimal logic so far by not seeing the solution. I am only getting the brute force logic.

Now I feel like memorizing the logics but problem solving means deducing the solution on the spot, right? without having seen the similar problem before.

I dont understand what I am doing, is it problem solving or memorizing the logics?

However in any interviews, the questions will be somehow new only. It is not guaranteed that I will get only the questions which I have practised.

Please suggest me on this.

elanchezian
Автор

Why does the while loop include the condition "even.next !== null" ? when even !== next and the while loop breaks, why bother checking for even.next?

hideinbush
Автор

Hi, just worked through this, and I understand everything except for how the return works. If a ListNode represents an individual node, why does returning dummyHead.next give you more than one node as a result? Or did I misunderstand what ListNode is?

ridersforransom
Автор

sir i have doubts in sparse matrix and polynomial

funcode
Автор

Are we violating the space complexity rule mentioned in the problem?

Shiva-zyjq
welcome to shbcf.ru