Add Two Numbers - Leetcode 2

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


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

Crucial to mention in this Short that the first node is the last digit of the number

taivu
Автор

Bro slapped us with Elementary school logic today 😊

swarupsaha
Автор

Please make more shorts. It is very helpful to review before interview.

byeonggeonkim
Автор

digging the new hairdo! Thanks for the helpful vids

servantofthelord
Автор

I just did this one last night. took some time

raghav
Автор

I once did it like this way with the dummy node in an interview and the interviewer didnt like it and asked to not use dummy nodes and reject me

רועיאטלי-נכ
Автор

I just be scrolling through brain rot and find one of these and be like, “hmm interesting” 🤔 then I just screen shot the code and experiment with it for like 20 minutes

CripsyBanks
Автор

There is a much simpler method and you start from the most significant digits. The worst case is that at some point you have to pass the carry to all digits already processed.

hillstrong