LeetQuant
ProblemsMocksQuant 75Study plansPricing
Sign inGet started free
The Essentials35 / 37
MediumAlgorithms & NumericalLeetCode

Best Time to Buy and Sell Stock

Two SigmaDE Shaw
Two SumNext: Sliding Window Maximum

Related problems

Two SumEasyProduct of Array Except SelfMediumKth Largest ElementMediumMaximum Subarray (Kadane)MediumRandom Pick with WeightMediumShuffle an Array (Fisher-Yates)Medium

More in Algorithms & Numerical.

Solve on LeetCode

Sign in to mark this done, track your progress and save it to your list.

Get startedSign in
LeetQuant

Practice real quant interview questions with worked solutions and a list of the ones to revisit.

PrivacyTerms

Practice

  • All problems
  • The Quant 75
  • Study plans
  • By topic
  • By firm

Topics

  • Probability
  • Brain teasers
  • Stochastic calculus
  • Options & Greeks

Firms

  • Jane Street
  • Citadel
  • Optiver
  • Two Sigma

Guides

  • Quant brain teasers
  • Probability questions
  • Market making
  • Jane Street guide
  • Mid-2026 report
  • Prep platforms compared
  • All guides