LeetCode 21 Merge Two Sorted Lists in javascript

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

I believe this is the best solution and explanation I've ever watched on Youtube.

danielyoung
Автор

Thank you for the video. I am grateful for your time and contribution. Kind regards, Akira.

akira_asahi
Автор

The massive Issue I have is the problem itself because if you were to try and understand this and do this in another code editor like run js you would assume that list1 and list2 are arrays like [1, 2, 4] when they are actually not. You basically have to know what an array [1, 2, 3] would generate when you make it into a linkedlist/listnode which I am now trying to figure out before even getting to this step.

Racools
Автор

why his give me the two lists as an array type and in the examples need output as array type ?

ahmedshehata
Автор

Great explanation, I just don't understand it, sadly

robscherer
Автор

Hi Jovi, I am new to leetcode and I could not understand this. Your video looks like the most accurate and easy solution. Could you please help me, when I am trying to run this code in my VS code it shows errors, for example, if I run console.log (list1.val) in my VS code it shows undefined but on leetcode there is a value for that, do I need to contract the list1 one first? and how they setup the solution on leetcode I feel they have something missing

us-wolf
Автор

yes. so easy. leetcode is fucking intense man...

BobbyBundlez
Автор

This problem makes no sense in javascript

craig
Автор

wtf is val?? dont remember any val in javascript, cant goole it

МаксимЛевченко-иш
join shbcf.ru