Skip to content

Latest commit

 

History

History
6 lines (4 loc) · 338 Bytes

File metadata and controls

6 lines (4 loc) · 338 Bytes

Interview-Problems

My solutions to common programming interview problems

twostackqueue - Implement a Queue using two stacks. (Java solution using Collections)

rand7 - Given rand5 a function which gives {0..4} with a uniform probability, create rand7 which gives {0..6} with a uniform probability. *This solution is nondeterministic.