---
title: "Discussion on \"Two Sum Problem - Leetcode\" | Hashnode"
description: "Discussion on \"Two Sum Problem - Leetcode\". Problem Statement\nConsider you are given an array of integers and a target sum, return indices of two numbers in the array such that they add up to the given target. You may assume that each input would have exactly one solution. Also, you cannot use..."
url: "https://hashnode.com/posts/two-sum-problem-leetcode/64cb8988cf0637f430a07da4"
---

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

Discussion

# [Two Sum Problem - Leetcode](https://johnnyk.hashnode.dev/two-sum-problem-leetcode?utm_source=hashnode&utm_medium=feed)

Problem Statement Consider you are given an array of integers and a target sum, return indices of two numbers in the array such that they add up to the given target. You may assume that each input would have exactly one solution. Also, you cannot use...

Aug 3, 2023 · 7 min read · johnnyk.hashnode.dev  
Updated Sep 6, 2023  
Read the article

-   [#dsa](https://hashnode.com/tag/dsa)
-   [#leetcode-solution](https://hashnode.com/tag/leetcode-solution)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#python3](https://hashnode.com/tag/python3)

## Written by

[John Kamau](https://hashnode.com/@JohnnyK)

@JohnnyK

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

I am passionate Software Engineer

## Responses 1

Markdown supported · ⌘↵ to post

[Hosea Tonzai Favour](https://hashnode.com/@TonzaiFavour)

[Aug 3, 2023](https://hashnode.com/posts/two-sum-problem-leetcode/64cb8988cf0637f430a07da4/comment/64cc03e38c8620c68655419d)

Great job you're doing👍

[John Kamau](https://hashnode.com/@JohnnyK)

[Aug 4, 2023](https://hashnode.com/posts/two-sum-problem-leetcode/64cb8988cf0637f430a07da4/comment/64cc03e38c8620c68655419d#reply-64ccb18c3d3aabc9723f676c)

Thank you sir
