Skip to content

Uniform Distribution #2

Get access to track progress Get access to bookmark
Asset Pricingx / 34
Behavioral Questionsx / 7
Brain Teasersx / 79
Derivatives Theoryx / 107
Digital Assets - Cryptox / 82
Energy Tradingx / 55
Linear Algebrax / 24
Machine Learningx / 62
Math Questionsx / 50
Probability and Statisticsx / 369
Programmingx / 54
Totalx / 923
Sorry, you don't have access to this interview question. Sign up to practice with our wide range of interview questions or use the filters to find free examples!
Sign up to see the solution!
Python scratchpad
# Run Python right here in your browser
def two_sum(nums, target):
    seen = {}
    for i, n in enumerate(nums):
        if target - n in seen:
            return [seen[target - n], i]
        seen[n] = i
    return []

print(two_sum([2, 7, 11, 15], 9))  # [0, 1]
Run Python in your browser

Write and execute code — numpy, pandas & scikit-learn included — right on the question page.

Log in to start coding
Title Category Subcategory Difficulty Status
230 Heads Probability and StatisticsGeneralMedium
Unlock with a membership
All Faces Probability and StatisticsGeneralEasy
Example
All-Boys City Probability and StatisticsGeneralEasy
Unlock with a membership
Any Cake Left Probability and StatisticsGeneralEasy
Unlock with a membership
Arcade Triple Probability and StatisticsGeneralEasy
Unlock with a membership
Beta Gap Probability and StatisticsGeneralMedium
Unlock with a membership
Bikes on the Road Probability and StatisticsGeneralEasy
Unlock with a membership
Birthday Problem #1 Probability and StatisticsGeneralEasy
Unlock with a membership
Birthday Problem #2 Probability and StatisticsGeneralEasy
Unlock with a membership
Both Card Colors Probability and StatisticsGeneralEasy
Unlock with a membership
Candle Batch Probability and StatisticsGeneralMedium
Unlock with a membership
Caught Mid-Switch Probability and StatisticsGeneralEasy
Unlock with a membership
Checkmate Probability and StatisticsGeneralEasy
Unlock with a membership
Cherry Streak Probability and StatisticsGeneralMedium
Unlock with a membership
Claw Machine Probability and StatisticsGeneralEasy
Unlock with a membership
Clean Statue Probability and StatisticsGeneralEasy
Unlock with a membership
Coin Race #1 Probability and StatisticsGeneralEasy
Unlock with a membership
Coins in Boxes Probability and StatisticsGeneralEasy
Unlock with a membership
Complementary Probability and StatisticsGeneralMedium
Unlock with a membership
Correlation Flip Probability and StatisticsGeneralMedium
Unlock with a membership
Covariance Ceiling Probability and StatisticsGeneralEasy
Unlock with a membership
Diagonal Duel Probability and StatisticsGeneralMedium
Unlock with a membership
Different Digits Probability and StatisticsGeneralEasy
Unlock with a membership
Even Heads Probability and StatisticsGeneralEasy
Unlock with a membership
Even Sum Probability and StatisticsGeneralEasy
Unlock with a membership
Exponential Distribution #2 Probability and StatisticsGeneralMedium
Unlock with a membership
Five Ascending Cards Probability and StatisticsGeneralMedium
Unlock with a membership
Five In Million Probability and StatisticsGeneralEasy
Unlock with a membership
Football or Cupcake Probability and StatisticsGeneralEasy
Unlock with a membership
Four Digit Difference Probability and StatisticsGeneralHard
Unlock with a membership
Four Fives #1 Probability and StatisticsGeneralEasy
Unlock with a membership
Four Fives #2 Probability and StatisticsGeneralEasy
Unlock with a membership
Gambler's Ruin #1 Probability and StatisticsGeneralEasy
Unlock with a membership
Gambler's Ruin #2 Probability and StatisticsGeneralEasy
Unlock with a membership
Gambler's Ruin #3 Probability and StatisticsGeneralMedium
Unlock with a membership
Going to the Beach #2 Probability and StatisticsGeneralHard
Unlock with a membership
Higher Card Probability and StatisticsGeneralMedium
Unlock with a membership
How Many Children Probability and StatisticsGeneralHard
Unlock with a membership
Jumping Robots Probability and StatisticsGeneralHard
Unlock with a membership
Knockout Stage Probability and StatisticsGeneralEasy
Example
Low Total Probability and StatisticsGeneralEasy
Unlock with a membership
Lower Die Probability and StatisticsGeneralMedium
Unlock with a membership
Meeting Probability Probability and StatisticsGeneralEasy
Unlock with a membership
Mismatched Dice Probability and StatisticsGeneralEasy
Unlock with a membership
Multiply 3 Dice Probability and StatisticsGeneralEasy
Example
Old Phone #1 Probability and StatisticsGeneralMedium
Unlock with a membership
Old Phone #2 Probability and StatisticsGeneralMedium
Unlock with a membership
Opening Round Draw Probability and StatisticsGeneralEasy
Unlock with a membership
Optimal Spread Probability and StatisticsGeneralHard
Unlock with a membership
Outcome Dice Probability and StatisticsGeneralEasy
Unlock with a membership
Pentagon Ants Probability and StatisticsGeneralEasy
Unlock with a membership
Perfect Correlation Probability and StatisticsGeneralEasy
Unlock with a membership
Poker Chip Drop Probability and StatisticsGeneralEasy
Unlock with a membership
Radar Sweep Probability and StatisticsGeneralMedium
Unlock with a membership
Rainy Day Probability and StatisticsGeneralMedium
Unlock with a membership
Spinner Duel Probability and StatisticsGeneralEasy
Unlock with a membership
Sum Two Random Numbers Probability and StatisticsGeneralEasy
Unlock with a membership
Tennis Game Probability and StatisticsGeneralMedium
Example
Tennis Match: Win in 2 or 3 Sets Probability and StatisticsGeneralMedium
Unlock with a membership
Twin Drums Probability and StatisticsGeneralEasy
Unlock with a membership
Two Digit Number Probability and StatisticsGeneralEasy
Unlock with a membership
Uniform Distribution #3 Probability and StatisticsGeneralMedium
Unlock with a membership
Uniformly Distributed Profit Probability and StatisticsGeneralMedium
Unlock with a membership
Variance of Two Variables Probability and StatisticsGeneralEasy
Unlock with a membership
Walking Home #1 Probability and StatisticsGeneralEasy
Unlock with a membership
Walking Home #2 Probability and StatisticsGeneralEasy
Unlock with a membership

Please log in to see the discussion.