---
title: "Discussion on \"Two Sum Problem Solution\" | Hashnode"
description: "Discussion on \"Two Sum Problem Solution\". Two Sum problem is a common question that you can find in several problem solving websites and also in technical interviews.\nProblem Statement (leetcode):\nGiven an array of integers nums and an integer target, return indices of the two numbers such t..."
url: "https://hashnode.com/posts/two-sum-problem-solution/61fd1aca8d15cb3e7ce60e33"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Two Sum Problem Solution](https://blog.saissihassani.com/two-sum-problem-solution?utm_source=hashnode&utm_medium=feed)

Two Sum problem is a common question that you can find in several problem solving websites and also in technical interviews. Problem Statement (leetcode): Given an array of integers nums and an integer target, return indices of the two numbers such t...

Feb 4, 2022 · 4 min read · blog.saissihassani.com  
Updated Jun 6, 2022  
Read the article

-   [#problem-solving-skills](https://hashnode.com/tag/problem-solving-skills)
-   [#python](https://hashnode.com/tag/python)
-   [#coding](https://hashnode.com/tag/coding)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#optimization](https://hashnode.com/tag/optimization)

## Written by

[Amine Saissi Hassani](https://hashnode.com/@aminesaissihassani)

@aminesaissihassani

  
[View profile](https://hashnode.com/@aminesaissihassani)

## Responses 2

Markdown supported · ⌘↵ to post

[walid Pw](https://hashnode.com/@walidbouhla)

[Feb 21, 2022](https://hashnode.com/posts/two-sum-problem-solution/61fd1aca8d15cb3e7ce60e33/comment/62138b9508ed9c6a4083a6ad)

Hello Amine,

Thank you for this article, already did solve it with the two nested for loops, but never thought that there is a faster solution for it.

Thank you again.

[Amine Saissi Hassani](https://hashnode.com/@aminesaissihassani)

[Mar 4, 2022](https://hashnode.com/posts/two-sum-problem-solution/61fd1aca8d15cb3e7ce60e33/comment/62138b9508ed9c6a4083a6ad#reply-62221216c2286341f652abac)

Thank you Walid! Glad it helps you!

[Othmane Kahtal](https://hashnode.com/@othmanekahtal)

[Feb 4, 2022](https://hashnode.com/posts/two-sum-problem-solution/61fd1aca8d15cb3e7ce60e33/comment/61fd2da38d15cb3e7ce61015)

keep going Amine, it's a cool blog

[Amine Saissi Hassani](https://hashnode.com/@aminesaissihassani)

[Feb 4, 2022](https://hashnode.com/posts/two-sum-problem-solution/61fd1aca8d15cb3e7ce60e33/comment/61fd2da38d15cb3e7ce61015#reply-61fd31cd8d15cb3e7ce6107b)

Thank you Othmane!
