ebay online Assessment
Summary
I received an online assessment link for eBay Industry Coding Assessment on CodeSignal, which involved implementing a complete in-memory database across multiple levels with specific API functionalities.
Full Experience
I received another link for eBay Industry Coding Assessment (OA) on CodeSignal and decided to attempt it to improve my scores. The assessment required implementing a complete in-memory database.
Interview Questions (1)
In-memory Database Implementation
Implement a complete in-memory database with the following levels and an provided interface skeleton:
Level 1: Support basic operations to manipulate records, fields, and values within fields.
Level 2: Support displaying a record's fields based on a filter.
Level 3: Support TTL (Time-To-Live) settings for records.
Level 4: Support Look-back operations to retrieve values stored at a specific timestamp in the past.
Each level must be completed to unlock and proceed to the next.
Interface Skeleton:
public void set(int timestamp, String key, String field, String value) {} public boolean compareAndSet(int timestamp, String key, String field, int expectedValue) {} public boolean compareAndDelete(int timestamp, String key, String field, int expectedValue) {} public String get(int timestamp, String key, String field) {}public List scan(int timestamp, String key) {} public List scanByPrefix(int timestamp, String key, String prefix) {}
public void restore(int timestamp, String key, String field, String value, int ttl) {} public boolean backup(int timestamp, int ttl) {}