# Solution to LeetCode #1: Two Sum (Python)

## Top 0.2% of solutions

5 min readMar 18, 2023

This is an **easy** LeetCode problem (source).

Given an array of integers `nums`

and an integer `target`

, return *indices of the two numbers such that they add up to *

.*target*

You may assume that each input would have ** exactly one solution**, and you may not use the

*same*…