Jane Street

www.janestreet.com

Interview Question

Trader Interview

What is the sum of the odd numbers between 1 and 100?

Answer

Interview Answer

3 Answers

0

2500

Interview Candidate on Jan 24, 2012
0

Sum(all)=5050, sum(odd)=5050-sum(even)=5050-sum(k=1 to k=50 of 2k)=5050-2*50*51/2=5050-2550=2500

Anonymous on Feb 1, 2012
0

(1+99)*50/2=100*25=2500

Anonymous on Sep 25, 2013

Add Answers or Comments

To comment on this, Sign In or Sign Up.