## Puzzle | Is it Raining

A Geek is about to get a plane to Hyderabad. Geek wants to know if it’s raining. Geek calls 3 random friends staying at Hyderabad… Read More »

- Minimum size binary string required such that probability of deleting two 1's at random is 1/X
- Probability of finding an element K in a Singly Linked List
- Probability of getting all possible values on throwing N dices
- Probability that an arbitrary positive divisor of 10^X is an integral multiple of 10^Y
- Probability of getting a perfect square when a random number is chosen in a given range
- Python - Binomial Distribution
- Probability of not getting two consecutive heads together in N tosses of coin
- Python – 68-95-99.7 rule in Statistics

A Geek is about to get a plane to Hyderabad. Geek wants to know if it’s raining. Geek calls 3 random friends staying at Hyderabad… Read More »

We have a stick of length L. The stick got broken at (n-1) randomly chosen points (lengths of parts can be non-integer or floating point… Read More »

Given an array of 1 and 0’s, where Ai = 1 denotes that ith day was a rainy day and Ai = 0 denotes it… Read More »

Given N which denotes the initial position of the person on the number line. Also given L which is the probability of the person of… Read More »

Given N containers consisting of N copies of number A and N copies of number B. We need to arrange the numbers in the N… Read More »

Given a number n and an array containing 1 to (2n+1) consecutive numbers. Three elements are chosen at random. Find the probability that the elements… Read More »

A person starts walking from position X = 0, find the probability to reach exactly on X = N if she can only take either… Read More »

Given a Binary Tree with children Nodes, Return a random Node with equal Probability of selecting any Node in tree. Consider the given tree with… Read More »

Given an array of N integers, You have to find the probability of choosing a random pair(i, j), i < j such that A[i] +… Read More »

Given two arrays A and B, a random pair is picked having an element from array A and another from array B. Output the probability… Read More »

Prosecutor’s fallacy is a very famous but neglected application of Baye’s rule. Prosecutor’s fallacy is a fallacy in statistical reasoning. This very famous problem uncovers… Read More »

You have a basketball hoop and someone says that you can play one of two games. Game1 : You get one shot to make the… Read More »

Given an NxN chessboard and a Knight at position (x,y). The Knight has to take exactly K steps, where at each step it chooses any… Read More »

A box contains 5 green, 4 yellow and 3 white balls. Three balls are drawn at random. What is the probability that they are not… Read More »

Two cards are drawn together from a pack of 52 cards. What is the probability that one is a spade and one is a heart?… Read More »