---
title: "Discussion on \"1. Two Sum\" | Hashnode"
description: "Discussion on \"1. Two Sum\". YouTube Video\nhttps://youtu.be/hfN4VONP4HQ\n \n[A1] - Brute Force\nTime: O(n^2)\nSpace: O(1)\nclass Solution:\n    def twoSum(self, nums: List[int], target: int) -> List[int]:\n        for i in range(len(nums)):\n            for j in range(i+1, len(nums)):\n ..."
url: "https://hashnode.com/posts/1-two-sum/670013f0780f08c1034e908d"
---

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

Discussion

# [1\. Two Sum](https://blog.debjotyms.com/1-two-sum?utm_source=hashnode&utm_medium=feed)

YouTube Video https://youtu.be/hfN4VONP4HQ \[A1\] - Brute Force Time: O(n^2) Space: O(1) class Solution: def twoSum(self, nums: List\[int\], target: int) -> List\[int\]: for i in range(len(nums)): for j in range(i+1, len(nums)): ...

Oct 4, 2024 · 1 min read · blog.debjotyms.com  
Updated Oct 17, 2024  
Read the article

-   [#two-sum-problem](https://hashnode.com/tag/two-sum-problem)
-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#debjotyms](https://hashnode.com/tag/debjotyms)
-   [#python](https://hashnode.com/tag/python)

## Written by

[Debjoty Mitra](https://hashnode.com/@debjotyms)

@debjotyms · Dhaka, Bangladesh

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

Machine Learning Enthusiast

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
