---
title: "Discussion on \"Two Sum\" | Hashnode"
description: "Discussion on \"Two Sum\". Given 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 return the a..."
url: "https://hashnode.com/posts/two-sum/67abe694a091178dcbf5b4c8"
---

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

Discussion

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

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 return the a...

Feb 12, 2025 · 1 min read · khushaalan.hashnode.dev  
Read the article

-   [#array](https://hashnode.com/tag/array)
-   [#hashtables](https://hashnode.com/tag/hashtables)

## Written by

[khushaalan](https://hashnode.com/@khushaalan)

@khushaalan · San Francisco

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

Software Dev

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
