---
title: "Discussion on \"DSA Day #1: Two Sum – HashMap Approach Explained\" | Hashnode"
description: "Discussion on \"DSA Day #1: Two Sum – HashMap Approach Explained\". # Problem: Two Sum\n# Problem statement: Given an array of integers nums and an integer target, return the indices i and j such that nums[i] + nums[j] == target and i != j.\nYou may assume that every input has exactly one pair of indices i and j that s..."
url: "https://hashnode.com/posts/dsa-day-1-two-sum-hashmap-approach-explained/6905731362d0bbd03d127483"
---

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

Discussion

# [DSA Day #1: Two Sum – HashMap Approach Explained](https://amit01.hashnode.dev/dsa-day-1-two-sum-hashmap-approach-explained?utm_source=hashnode&utm_medium=feed)

\# Problem: Two Sum # Problem statement: Given an array of integers nums and an integer target, return the indices i and j such that nums\[i\] + nums\[j\] == target and i != j. You may assume that every input has exactly one pair of indices i and j that s...

Nov 1, 2025 · 1 min read · amit01.hashnode.dev  
Read the article

-   [#dsa](https://hashnode.com/tag/dsa)
-   [#java](https://hashnode.com/tag/java)
-   [#problem-solving](https://hashnode.com/tag/problem-solving)
-   [#interview](https://hashnode.com/tag/interview)
-   [#leetcode](https://hashnode.com/tag/leetcode)

## Written by

[Amit Kumar](https://hashnode.com/@dev-Amit)

@dev-Amit · India

  
[View profile](https://hashnode.com/@dev-Amit)

Sharing my insights about dsa,java,tech news, interview prepration

Hi, I'm a backend software engineer with over 2+ years of industry experience. I have built a large, scalable, and distributed fintech-backed system for one of India's top banks. I like to do brainstorming of real-world problems and try to solve them using a programming language.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
