---
title: "Discussion on \"Leetcode: Two Sum\" | Hashnode"
description: "Discussion on \"Leetcode: Two Sum\". The Problem\nGiven an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.\nYou may assume that each input would have exactly one solution, and you may not use the same element twice.\nYou can ..."
url: "https://hashnode.com/posts/leetcode-two-sum/6246155e485edefec47e3ffb"
---

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

Discussion

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

The Problem 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 element twice. You can ...

Mar 31, 2022 · 6 min read · codingwithroy.hashnode.dev  
Read the article

-   [#coding-challenge](https://hashnode.com/tag/coding-challenge)
-   [#codenewbies](https://hashnode.com/tag/codenewbies)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#problem-solving-skills](https://hashnode.com/tag/problem-solving-skills)
-   [#beginners](https://hashnode.com/tag/beginners)

## Written by

[Roy Jang](https://hashnode.com/@CodingWithRoy)

@CodingWithRoy

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

Front-end developer, hoping to also help others along this journey.

## Responses 1

Markdown supported · ⌘↵ to post

[TomTom Developers](https://hashnode.com/@tomtomdevs)

[Mar 31, 2022](https://hashnode.com/posts/leetcode-two-sum/6246155e485edefec47e3ffb/comment/62462b3a485edefec47e41dc)

Great explainations!
