Easy Linked List Question! | Merge Two Sorted Lists - Leetcode 21

preview_player
Показать описание
leetcode, coding interview question, data structures, data structures and algorithms, faang
Рекомендации по теме
Комментарии
Автор

Master Data Structures & Algorithms For FREE at AlgoMap.io!

GregHogg
Автор

Thats the key part of the merge sort, just with linked lists,
A very nice concept!

darknight
Автор

i do all of dsa coding questions in c++ but i watch your video because whenever i watch video of solving a question in c++ my focus is shifted to coding part rather than the concepts that are used to solve question. it helped me a lot in grasping the concepts 👍

ShravanaKumar-hd
Автор

This makes more sense then the recurssion approach 😅

jmg
Автор

you got to make link list class (node and object) first then use those types list1: linklist, like when you assign dummy = ListNode(val =-1) and I know you did before declaring the class but peope got to know that these aren't ordinary lists

xzex
Автор

We cwe can also do this method 👇
L1=[1, 2, 4]
LE=[1, 3, 4]
print (sorted(L1+L2))

bhaveshganolia
Автор

Can you code the solution with unordered lists?

tahatahereddine