Ayush Garg

Search

SearchSearch

Recently Updated

  • STAT 230 - Chapter 1

    Dec 04, 2025

    • SE212 - Program Correctness

      Dec 03, 2025

      • SE212

        Dec 02, 2025

        • D3

          Nov 30, 2025

          Home

          ❯

          List of Notes

          ❯

          121. Best Time to Buy and Sell Stock

          121. Best Time to Buy and Sell Stock

          Dec 16, 2024, 1 min read

          This was a pretty easy straightforward array problem, I made it significantly harder than it had to be because I didn’t read the instructions :)

          Solution Link: https://github.com/LaZeAsh/competitive-programming/tree/main/Leetcode/cpp/121-BestTimetoBuyandSellStock

          Reflection §

          I should be able to do this type of problem quicker, this took too much time for such an easy problem. I will try to read the question and think before I jump straight to coding it up.

          Graph View

          Backlinks

          • Blind 75

          Created by Ayush Garg using Quartz , © 2025

          • GitHub
          • Linkedin
          • Blog
          • Twitter