Shawn's Portfolio
  • Home
  • Docs
  • Projects
  • Blog

Docs

  • BJJ
    • Spider Guard
    • Back
    • Guard
    • Half Guard
    • Knee on Belly
    • Mount
    • Side Control
    • Stand-Up Grappling
    • Takedowns
    • North South
    • Turtle
  • Blind 75
    • Arrays
    • Binary Trees
  • Cooking
    • Sautéed Spicy King Oyster Mushroom
    • Savory Eggplant and Ground Beef Stir-Fry
    • Chinese Stir-Fried Eggs and Tomatoes
    • Kung Pao Chicken
    • Stir-Fried Lotus Root with Snow Peas
  • Judo
    • Yellow Belt Throws

Easy

Easy array problems from the Blind 75 list.

In this section

Best Time to Buy and Sell Stock

One-pass solution that tracks the minimum price seen so far to maximize profit. O(n) time, O(1) space.

Two Sum

Hash map solution to the classic Two Sum problem: find the indices of the two numbers that add up to a target in O(n) time and O(n) space.

© 2026 Shawn Zhang