---
title: "Discussion on \"Java Solution - LeetCode Problem 1 Two Sum\" | Hashnode"
description: "Discussion on \"Java Solution - LeetCode Problem 1 Two Sum\". Problem Description:\nGiven an array of integers nums and an integer target, return indices of the two numbers such that they add up to the target.\nYou may assume that each input would have exactly one solution, and you may not use the same element tw..."
url: "https://hashnode.com/posts/java-solution-leetcode-problem-1-two-sum/62f9f3febe14cfbd5d7c7454"
---

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

Discussion

# [Java Solution - LeetCode Problem 1 Two Sum](https://vks.hashnode.dev/java-solution-leetcode-problem-1-two-sum?utm_source=hashnode&utm_medium=feed)

Problem Description: Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to the target. You may assume that each input would have exactly one solution, and you may not use the same element tw...

Aug 15, 2022 · 1 min read · vks.hashnode.dev  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#competitive-programming](https://hashnode.com/tag/competitive-programming)
-   [#problem-solving-skills](https://hashnode.com/tag/problem-solving-skills)
-   [#leetcode](https://hashnode.com/tag/leetcode)

## Written by

[V Krishnasubramaniam](https://hashnode.com/@vks)

@vks

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

Full Stack Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
