Ayush Garg

Search

SearchSearch

Recently Updated

  • Exponential Moving Average

    Jul 30, 2026

    • Revisiting Feature Prediction for Learning Visual Representations from Video

      Jul 30, 2026

      • #research-paper
    • Stop Gradient

      Jul 30, 2026

      • Clash Royale Agent

        Jul 22, 2026

        Home

        ❯

        Index 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 , © 2026

        • GitHub
        • Linkedin
        • Blog
        • Twitter