LeetCode - 21| Merge Two Sorted Lists | Two Pointer Approach
Pikirisu Logs
0:00 / 0:00
LeetCode - 21| Merge Two Sorted Lists | Two Pointer Approach
8 просмотров · 4 месяца назад
Pikirisu Logs
5 подписчиков
8 просмотров · 4 месяца назад
Working through the LeetCode problem **Merge Two Sorted Lists**.
In this video, I explore three approaches:
Brute Force (Array + Sorting)
Recursive Solution
Iterative Two Pointer Solution (Dummy Node + Tail Pointer)
Trying to focus not just on getting the answer accepted, but also on understanding the tradeoffs between different approaches and how the optimal solution works under the hood.
#leetcode #dsa #cpp #linkedlist #programming #codingjourney