---
title: "Discussion on \"Leetcode 1: Two sum\" | Hashnode"
description: "Discussion on \"Leetcode 1: Two sum\". Mastering the Two Sum Algorithm – Problem Walkthrough, Brute Force vs. Dictionary Methods, and Dive into Space-Time Complexity"
url: "https://hashnode.com/posts/mastering-the-two-sum-algorithm-problem-walkthrough-brute-force-vs-dictionary-methods-and-dive-into-space-time-complexity/64e2a6dbd84204bb03f63794"
---

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

Discussion

# [Leetcode 1: Two sum](https://emekamanuel.hashnode.dev/mastering-the-two-sum-algorithm-problem-walkthrough-brute-force-vs-dictionary-methods-and-dive-into-space-time-complexity?utm_source=hashnode&utm_medium=feed)

Mastering the Two Sum Algorithm – Problem Walkthrough, Brute Force vs. Dictionary Methods, and Dive into Space-Time Complexity

Aug 20, 2023 · 7 min read · emekamanuel.hashnode.dev  
Read the article

-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#leetcode-solution](https://hashnode.com/tag/leetcode-solution)
-   [#python](https://hashnode.com/tag/python)
-   [#python3](https://hashnode.com/tag/python3)
-   [#faang](https://hashnode.com/tag/faang)

## Written by

[Onyewuchi Emeka Manuel](https://hashnode.com/@Marrnueldev)

@Marrnueldev · Lagos, Nigeria.

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

Frontend Engineer. I want to know how things work under the hood. Look at nature and see infinite possibilities.

I'm a Frontend Developer residing in Lagos, Nigeria. My current academic journey takes me through the corridors of the University of Nigeria, where I'm immersed in the study of computer science. With a keen interest in technology, I'm enthusiastic about crafting insightful tech articles, collaborating on dynamic projects, and setting my sights on joining the prestigious FAANG companies. Here's to an exciting path ahead! 🚀

## Responses 10

Markdown supported · ⌘↵ to post

[Chibuikem Lucas](https://hashnode.com/@ChibuikemLucas)

[Sep 3, 2023](https://hashnode.com/posts/mastering-the-two-sum-algorithm-problem-walkthrough-brute-force-vs-dictionary-methods-and-dive-into-space-time-complexity/64e2a6dbd84204bb03f63794/comment/64f416c2b2147985ab4ed2b8)

Great job, your explanation is very concise and easy to understand.

[Onyewuchi Emeka Manuel](https://hashnode.com/@Marrnueldev)

[Sep 3, 2023](https://hashnode.com/posts/mastering-the-two-sum-algorithm-problem-walkthrough-brute-force-vs-dictionary-methods-and-dive-into-space-time-complexity/64e2a6dbd84204bb03f63794/comment/64f416c2b2147985ab4ed2b8#reply-64f4ed70b2147985ab4ee43c)

Thank you so much. I appreciate

[Asoh Faustina](https://hashnode.com/@Asorh)

[Aug 22, 2023](https://hashnode.com/posts/mastering-the-two-sum-algorithm-problem-walkthrough-brute-force-vs-dictionary-methods-and-dive-into-space-time-complexity/64e2a6dbd84204bb03f63794/comment/64e4d728bdabeadbcf84f93d)

Very resourceful .Nice

[Onyewuchi Emeka Manuel](https://hashnode.com/@Marrnueldev)

[Sep 3, 2023](https://hashnode.com/posts/mastering-the-two-sum-algorithm-problem-walkthrough-brute-force-vs-dictionary-methods-and-dive-into-space-time-complexity/64e2a6dbd84204bb03f63794/comment/64e4d728bdabeadbcf84f93d#reply-64f4ed60b2147985ab4ee438)

Thank you.

[Akisanya Bolaji](https://hashnode.com/@Beejaybot)

[Aug 21, 2023](https://hashnode.com/posts/mastering-the-two-sum-algorithm-problem-walkthrough-brute-force-vs-dictionary-methods-and-dive-into-space-time-complexity/64e2a6dbd84204bb03f63794/comment/64e3e4b3a9a8b9bbc8cf98c1)

Insightful & well written.

[Onyewuchi Emeka Manuel](https://hashnode.com/@Marrnueldev)

[Aug 22, 2023](https://hashnode.com/posts/mastering-the-two-sum-algorithm-problem-walkthrough-brute-force-vs-dictionary-methods-and-dive-into-space-time-complexity/64e2a6dbd84204bb03f63794/comment/64e3e4b3a9a8b9bbc8cf98c1#reply-64e46578965997cb76b4f3e7)

Thank you so much. I really appreciate your candid feedback.

[Kosi Mesigo](https://hashnode.com/@Kossyyyy)

[Aug 21, 2023](https://hashnode.com/posts/mastering-the-two-sum-algorithm-problem-walkthrough-brute-force-vs-dictionary-methods-and-dive-into-space-time-complexity/64e2a6dbd84204bb03f63794/comment/64e39f3da9a8b9bbc8cf90b6)

This is really good I'm so proud of you

[Onyewuchi Emeka Manuel](https://hashnode.com/@Marrnueldev)

[Aug 22, 2023](https://hashnode.com/posts/mastering-the-two-sum-algorithm-problem-walkthrough-brute-force-vs-dictionary-methods-and-dive-into-space-time-complexity/64e2a6dbd84204bb03f63794/comment/64e39f3da9a8b9bbc8cf90b6#reply-64e46584965997cb76b4f3ed)

Thank you so much. I really appreciate your candid feedback.

[Abdulrasheed](https://hashnode.com/@Abdulrasheed01)

[Aug 21, 2023](https://hashnode.com/posts/mastering-the-two-sum-algorithm-problem-walkthrough-brute-force-vs-dictionary-methods-and-dive-into-space-time-complexity/64e2a6dbd84204bb03f63794/comment/64e354dfa9a8b9bbc8cf8527)

too good, brother

[Onyewuchi Emeka Manuel](https://hashnode.com/@Marrnueldev)

[Aug 22, 2023](https://hashnode.com/posts/mastering-the-two-sum-algorithm-problem-walkthrough-brute-force-vs-dictionary-methods-and-dive-into-space-time-complexity/64e2a6dbd84204bb03f63794/comment/64e354dfa9a8b9bbc8cf8527#reply-64e46562965997cb76b4f3e2)

Thank you so much. I really appreciate your candid feedback.

[Anadu Victor](https://hashnode.com/@Redcapchief)

[Aug 21, 2023](https://hashnode.com/posts/mastering-the-two-sum-algorithm-problem-walkthrough-brute-force-vs-dictionary-methods-and-dive-into-space-time-complexity/64e2a6dbd84204bb03f63794/comment/64e337afa217febb97163fc0)

Too good!

[Onyewuchi Emeka Manuel](https://hashnode.com/@Marrnueldev)

[Aug 22, 2023](https://hashnode.com/posts/mastering-the-two-sum-algorithm-problem-walkthrough-brute-force-vs-dictionary-methods-and-dive-into-space-time-complexity/64e2a6dbd84204bb03f63794/comment/64e337afa217febb97163fc0#reply-64e46551965997cb76b4f3de)

Thank you so much. I really appreciate your candid feedback.

[Chukwunonso Gospel](https://hashnode.com/@Israel100)

[Aug 21, 2023](https://hashnode.com/posts/mastering-the-two-sum-algorithm-problem-walkthrough-brute-force-vs-dictionary-methods-and-dive-into-space-time-complexity/64e2a6dbd84204bb03f63794/comment/64e330cda9a8b9bbc8cf7df9)

Well composed article my g

[Onyewuchi Emeka Manuel](https://hashnode.com/@Marrnueldev)

[Aug 22, 2023](https://hashnode.com/posts/mastering-the-two-sum-algorithm-problem-walkthrough-brute-force-vs-dictionary-methods-and-dive-into-space-time-complexity/64e2a6dbd84204bb03f63794/comment/64e330cda9a8b9bbc8cf7df9#reply-64e46546b455f3cce04d0a88)

Thank you so much. I really appreciate your candid feedback.

[Chelfrey Ucheoma](https://hashnode.com/@Chelf)

[Aug 21, 2023](https://hashnode.com/posts/mastering-the-two-sum-algorithm-problem-walkthrough-brute-force-vs-dictionary-methods-and-dive-into-space-time-complexity/64e2a6dbd84204bb03f63794/comment/64e31b36a9a8b9bbc8cf798f)

Very well written!👏🏾

[Onyewuchi Emeka Manuel](https://hashnode.com/@Marrnueldev)

[Aug 22, 2023](https://hashnode.com/posts/mastering-the-two-sum-algorithm-problem-walkthrough-brute-force-vs-dictionary-methods-and-dive-into-space-time-complexity/64e2a6dbd84204bb03f63794/comment/64e31b36a9a8b9bbc8cf798f#reply-64e46538965997cb76b4f3d5)

Thank you so much Chelfrey. I really appreciate your candid feedback.

[Izu](https://hashnode.com/@Izuasomba)

[Aug 21, 2023](https://hashnode.com/posts/mastering-the-two-sum-algorithm-problem-walkthrough-brute-force-vs-dictionary-methods-and-dive-into-space-time-complexity/64e2a6dbd84204bb03f63794/comment/64e3138aa217febb971638c3)

Very insightful article, as one who wants to really understand data structures, I'll keep an eye on this page for more articles, I recommend for anyone else in the comments too

[Onyewuchi Emeka Manuel](https://hashnode.com/@Marrnueldev)

[Aug 22, 2023](https://hashnode.com/posts/mastering-the-two-sum-algorithm-problem-walkthrough-brute-force-vs-dictionary-methods-and-dive-into-space-time-complexity/64e2a6dbd84204bb03f63794/comment/64e3138aa217febb971638c3#reply-64e46509965997cb76b4f3c2)

Thank you so much. I really appreciate your candid feedback.

[Wisdom Oragwam](https://hashnode.com/@Wi3yyy)

[Aug 21, 2023](https://hashnode.com/posts/mastering-the-two-sum-algorithm-problem-walkthrough-brute-force-vs-dictionary-methods-and-dive-into-space-time-complexity/64e2a6dbd84204bb03f63794/comment/64e310b4a217febb9716381d)

Good work bro The money must be made🙏

[Onyewuchi Emeka Manuel](https://hashnode.com/@Marrnueldev)

[Aug 22, 2023](https://hashnode.com/posts/mastering-the-two-sum-algorithm-problem-walkthrough-brute-force-vs-dictionary-methods-and-dive-into-space-time-complexity/64e2a6dbd84204bb03f63794/comment/64e310b4a217febb9716381d#reply-64e46523965997cb76b4f3c9)

Thank you so much. I really appreciate
