2016-03-14

posted Mar 14, 2016, 8:41 AM by Samuel Konstantinovich   [ updated Mar 14, 2016, 8:41 AM ]


Generate 1million x,y pairs of points from 0 to 1.
for each random x y pair:
    if x^2 + y^2 <= 1, then sum+=1
print   sum/1000000.0;


Goal: Linked Lists


Comments