LeetCode Question · Jan 2018

Uber phone screen - String cache

6 upvotes 4,875 views 10 replies

Question Details

FIFO Cache of N Strings. Both methods should run in constant time. class Cache { final int N; void add (String element) { // Implement constant-time here. { boolean contains (String...

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Queue Strings