Compare the current value of each list, the assign the smaller node to merged list, then return it.
It is straight forward, just need to know that it use to merge a new list, not create a new list.
leetcode-21-Merge Two Sorted Lists
阅读 15
2023-08-23
Compare the current value of each list, the assign the smaller node to merged list, then return it.
It is straight forward, just need to know that it use to merge a new list, not create a new list.
相关推荐
精彩评论(0)