Leetcode#21: Merge Two Sorted Lists - Swift (Swift Algorithms & Data Structures)

preview_player
Показать описание
Today we're tackling question 21 on Leetcode: Merge Two Sorted Lists. As always using Swift programming language!

The motivation for this channel (for now, might expand to others) is creating video solutions for algorithms and data structure questions. There are many video solutions on Youtube that are usually done in Java or Python. My take on using Swift is to cater to Swift programming language enthusiast or iOS developers.

If you folks find this content useful, please help to subscribe! Thank you!!
Рекомендации по теме
Комментарии
Автор

You should have explained the use of current, and specifically why it works to set it as the value of dummy. It might seem obvious, but to someone who is looking for help with this algorithm, that is the key part of this algorithm and it deserves explanation.

muzikjay