-
[LeetCode] 23. Merge k Sorted ListsLife/PS 2026. 5. 18. 16:43

Pick up the smallest element among k lists. Repeat this untill all elements are used.
You should know that this code DESTRUCT the parameter vector<ListNode*>& lists.

'Life > PS' 카테고리의 다른 글
[LeetCode] 25. Reverse Nodes in k-Group (0) 2026.05.22 [LeetCode] 30. Substring with Concatenation of All Words (0) 2026.05.22 [LeetCode] 10. Regular Expression Matching (0) 2026.05.15 [LeetCode] 4. Median of Two Sorted Arrays (0) 2026.05.14 트리의 지름: Diameter of Tree (0) 2026.03.30