LeetQuant
ProblemsMocksQuant 75Study plansPricing
Sign inGet started free
Quant Researcher53 / 62
MediumAlgorithms & NumericalLeetCode

Random Pick with Weight

CitadelTwo Sigma
Sliding Window MaximumNext: Shuffle an Array (Fisher-Yates)

Related problems

Product of Array Except SelfMediumKth Largest ElementMediumMaximum Subarray (Kadane)MediumShuffle an Array (Fisher-Yates)MediumBest Time to Buy and Sell StockMediumMonte Carlo — Estimate πEasy

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