---
title: "Discussion on \"Best Time to Buy and Sell Stock #121\" | Hashnode"
description: "Discussion on \"Best Time to Buy and Sell Stock #121\". Check the problem statement on leetcode\nIntuition\n\nYou can not sell first and buy later. So it will remove all the cases where you need to check the difference from previous values\n\nYou only have to make 1 trade\n\nYou only need to find the difference ..."
url: "https://hashnode.com/posts/best-time-to-buy-and-sell-stock-121/64df71f5b742cb449edf080c"
---

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

Discussion

# [Best Time to Buy and Sell Stock #121](https://rajanlagah.hashnode.dev/best-time-to-buy-and-sell-stock-121?utm_source=hashnode&utm_medium=feed)

Check the problem statement on leetcode Intuition You can not sell first and buy later. So it will remove all the cases where you need to check the difference from previous values You only have to make 1 trade You only need to find the difference ...

Aug 18, 2023 · 2 min read · rajanlagah.hashnode.dev  
Read the article

-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#dsa](https://hashnode.com/tag/dsa)
-   [#wemakedevs](https://hashnode.com/tag/wemakedevs)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)

## Written by

[Rajan Lagah](https://hashnode.com/@rajanlagah)

@rajanlagah

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

👨‍💻 Code Crafts and Tech Tales: My Journey Unfolded on Hashnode.

👨‍💻🖥️ Crafting code wizardry for 5 years and counting. Experienced programmer determined to transform code into innovation.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
