Skip to content

Instantly share code, notes, and snippets.

View AndroidDeveloperLB's full-sized avatar

AndroidDeveloperLB

View GitHub Profile
@AndroidDeveloperLB
AndroidDeveloperLB / leftHandedStatisticsCheck
Last active November 23, 2019 07:29
based on this video: https://youtu.be/TGLYcYCm2FM?t=106 , checks how come there are 10% left handed people, if all combinations of them are above 10%
import java.util.ArrayList;
import java.util.Random;
//based on this video: https://youtu.be/TGLYcYCm2FM?t=106
// checks how come there are 10% left handed people, if :
// left-male + right-female = 17% left handed
// right-male + right-female = 10% left handed
// right-male + left-female = 22% left handed
// left-male + left-female = 25% left handed