---
title: "Discussion on \"Two Sum - LeetCode Easy\" | Hashnode"
description: "Discussion on \"Two Sum - LeetCode Easy\". Problem Link - https://leetcode.com/problems/two-sum/\nclass Solution {\npublic:\n    vector<int> twoSum(vector<int>& nums, int target) {\n        int n=nums.size(); //finding the length of the dynamic array i.e., our vector\n        unordered_map<int,int..."
url: "https://hashnode.com/posts/two-sum-leetcode-easy/62d042b6dec7a6eae9b58a2e"
---

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

Discussion

# [Two Sum - LeetCode Easy](https://rajattiwari.hashnode.dev/two-sum-leetcode-easy?utm_source=hashnode&utm_medium=feed)

Problem Link - https://leetcode.com/problems/two-sum/ class Solution { public: vector<int> twoSum(vector<int>& nums, int target) { int n=nums.size(); //finding the length of the dynamic array i.e., our vector unordered\_map<int,int...

Jul 14, 2022 · 1 min read · rajattiwari.hashnode.dev  
Read the article

-   [#cpp](https://hashnode.com/tag/cpp)
-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#dsa](https://hashnode.com/tag/dsa)
-   [#coding](https://hashnode.com/tag/coding)
-   [#data-structures](https://hashnode.com/tag/data-structures)

## Written by

[Rajat Tiwari](https://hashnode.com/@rajattiwari)

@rajattiwari · Rudrapur, Uttarakhand, India

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

Aspiring Software Developer

I am a software developer and love to contribute to the tech community.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
