Zynga Interview Question

Blocking queue implementation. Coding was required.

Interview Answers

Anonymous

Sep 18, 2012

get the synchronization right on the push and offer on the BlockingQueue. Use either Locks or wait / notify mechanism.

1

Anonymous

Sep 1, 2011

Conventional implementation that can be found in most data structures and algorithms books or Wikipedia.