---
title: "Discussion on \"Daily Dose of DSA - Day 12\" | Hashnode"
description: "Discussion on \"Daily Dose of DSA - Day 12\". Best time to buy and sell a stock using Brute force (O(n^2)TC & O(1)SC) and using efficient method (O(n)TC & O(1)SC)"
url: "https://hashnode.com/posts/daily-dose-of-dsa-day-12/63d24bb6dfa7535428221603"
---

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

Discussion

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

Best time to buy and sell a stock using Brute force (O(n^2)TC & O(1)SC) and using efficient method (O(n)TC & O(1)SC)

Jan 26, 2023 · 1 min read · legolas12hustle.dev  
Read the article

-   [#cpp](https://hashnode.com/tag/cpp)
-   [#dsa](https://hashnode.com/tag/dsa)

## 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 1

Markdown supported · ⌘↵ to post

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

[Jan 26, 2023](https://hashnode.com/posts/daily-dose-of-dsa-day-12/63d24bb6dfa7535428221603/comment/63d24be1a763c508ab870936)

[leetcode.com/problems/best-time-to-buy-and-sell-s…](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)
