.. _leetcode-001: ========================================= :badge:`EASY,badge-info` 0001. Two Sum ========================================= ------------------------- Problem Statement ------------------------- `Leetcode Link `_ -------------------------- Examples -------------------------- --------------------- Solution --------------------- .. tab:: O(n) Space and Time .. literalinclude:: solution_1.py :caption: Solution :linenos: :language: python .. tab:: O(n) Time and O(1) Space .. literalinclude:: solution_2.py :caption: Solution :linenos: :language: python