* ראיון HR טלפוני ראשוני.
* ראיון זום של חצי שעה עם הראש צוות.
* מבחן בזום, צריך לשתף מסך ולפתור את התרגיל התכנותי המצורך כאן ב JAVA.
אסור להתשמש באינטרנט במהלך כתיבת הקוד
שאלות מתוך הראיון
BMC, Tel-Aviv, Model9 team, assignment via zoom interview
----------------------------------------------------------
Design and implement the API of a Java library providing object pooling functionality for any type of object.
Objects in the pool can be borrowed by users and should be returned to the pool after usage of them is done.
While objects are borrowed, they cannot be borrowed again.
The pool should have a coreSize and a maxSize. When a user requests an object and the pool is empty but the total number of created objects (poolSize) is less than maxSize, a new object should be created in the pool.
The pool should be thread safe.
---
my comments:
1. coreSize - the initial pool size.
2. maxSize - the max number of objects in the pool.
3. use java Generics.
4. make the pool support for multi concurrency.
5. you are not allowed to use the internet while writing the code.
6. Good Luck :)