leetcode 2 add two numbers problem solution

preview_player
Показать описание
In this video, I discuss the solution to LeetCode #2 - Add Two Numbers. I also discuss the time and space complexity and an optimization to run time by using early exit.
This question uses the basic approach to add two numbers stores as nodes of linked list in O(Max(m,n)) time and space.

One of the most frequently asked coding interview questions on Arrays in companies like Google, Facebook, Amazon, LinkedIn, Microsoft, Uber, Apple, Adobe etc.
Рекомендации по теме
join shbcf.ru