---
title: "Discussion on \"Daily Dose of DSA - Day 7\" | Hashnode"
description: "Discussion on \"Daily Dose of DSA - Day 7\". Two sum using Brute Force O(n^2)TC O(1)SC , using sorting and two pointer approach O(nlogn)TC O(1)SC, using unordered map O(n)TC&O(n)SC"
url: "https://hashnode.com/posts/daily-dose-of-dsa-day-7/63cd41f48c8be76211ab3b94"
---

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

Discussion

# [Daily Dose of DSA - Day 7](https://legolas12hustle.dev/daily-dose-of-dsa-day-7?utm_source=hashnode&utm_medium=feed)

Two sum using Brute Force O(n^2)TC O(1)SC , using sorting and two pointer approach O(nlogn)TC O(1)SC, using unordered map O(n)TC&O(n)SC

Jan 22, 2023 · 2 min read · legolas12hustle.dev  
Read the article

-   [#cpp](https://hashnode.com/tag/cpp)
-   [#dsa](https://hashnode.com/tag/dsa)
-   [#map](https://hashnode.com/tag/map)
-   [#sorting](https://hashnode.com/tag/sorting)
-   [#two-pointers](https://hashnode.com/tag/two-pointers)

## Written by

[Atharva](https://hashnode.com/@Legolas12)

@Legolas12

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

Grind & Hustle

Hi, I'm Atharva Martiwar, a pre-final year student at National Institute of Technology Rourkela doing my bachelor's degree in Electronics and Electrical Engineering. As a Computer Science &amp; CP Enthusiast, I am keen on problem-solving and logical reasoning through coding. Love to learn DSA and solve coding questions. Good proficiency in C++, Dart, and Python. Currently exploring flutter for Android app development and python for Automation, building web, and Desktop Applications. Apart from my technical skills, I have a great experience in event management and planning. Through experiences and voluntary efforts, I have managed to develop leadership qualities and proficiency in speaking skills. PS: Love to play Badminton &amp; Table Tennis :D

## Responses 2

Markdown supported · ⌘↵ to post

[Mohsin Khan](https://hashnode.com/@emkay2309)

[Jan 25, 2023](https://hashnode.com/posts/daily-dose-of-dsa-day-7/63cd41f48c8be76211ab3b94/comment/63d0f8c879a109e4ff1596f1)

Thanks bro , like in the day 8 you have provided the leetcode question number , so I was able to go and try that question.

[Atharva](https://hashnode.com/@Legolas12)

[Jan 25, 2023](https://hashnode.com/posts/daily-dose-of-dsa-day-7/63cd41f48c8be76211ab3b94/comment/63d0f8c879a109e4ff1596f1#reply-63d0f9251acaeae4c9da8e3e)

My title contains the question name If you basically search that on Google you will get the question

[Mohsin Khan](https://hashnode.com/@emkay2309)

[Jan 24, 2023](https://hashnode.com/posts/daily-dose-of-dsa-day-7/63cd41f48c8be76211ab3b94/comment/63d052811acaeae4c9da7d3b)

Nice Work bro, But try to provide the link for the questions as well.

[Atharva](https://hashnode.com/@Legolas12)

[Jan 25, 2023](https://hashnode.com/posts/daily-dose-of-dsa-day-7/63cd41f48c8be76211ab3b94/comment/63d052811acaeae4c9da7d3b#reply-63d0f86c79a109e4ff1596e9)

Ok I will put that in comment section
