
Merge Two Linked List
Approach Explanation (ノ◕ヮ◕)ノ*:・゚✧ I created a dummy node to simplify handling the head of the merged list. I used a tail pointer to build the merged list step by step. I compared the current nodes of both lists: If list1’s value was smaller, I attached it. Otherwise, I attached list2. I moved forward in whichever list I used. When one list was empty, I attached the remaining nodes of the other list. Finally, I returned the merged list starting from dummy.next. Method Used: (〜 ̄▽ ̄)〜 Dummy node technique Two-pointer comparison In-place splicing Efficient traversal Constant space
Continue reading on Dev.to Python
Opens in a new tab
![[Learning notes and hw] getting started with R-cnn: Manually implementing Intersection over Union (IoU)](/_next/image?url=https%3A%2F%2Fmedia2.dev.to%2Fdynamic%2Fimage%2Fwidth%3D800%252Cheight%3D%252Cfit%3Dscale-down%252Cgravity%3Dauto%252Cformat%3Dauto%2Fhttps%253A%252F%252Fdev-to-uploads.s3.amazonaws.com%252Fuploads%252Farticles%252Favit2emoxc0g68e5ltqj.jpg&w=1200&q=75)



