Practice Arena
Solve exercises, validate code, earn scores and build a persistent proof-of-work history.
Promisify Callback Function (Variation #1)
### Promisify Callback Function (Variation #1) Convert an error-first Node.js callback function into a Promise. Write an optimal, production-ready solution adhering to JavaScript best practices and type boundaries.
Promisify Callback Function (Variation #2)
### Promisify Callback Function (Variation #2) Convert an error-first Node.js callback function into a Promise. Write an optimal, production-ready solution adhering to JavaScript best practices and type boundaries.
Promisify Callback Function (Variation #3)
### Promisify Callback Function (Variation #3) Convert an error-first Node.js callback function into a Promise. Write an optimal, production-ready solution adhering to JavaScript best practices and type boundaries.
Promisify Callback Function (Variation #4)
### Promisify Callback Function (Variation #4) Convert an error-first Node.js callback function into a Promise. Write an optimal, production-ready solution adhering to JavaScript best practices and type boundaries.
LRU Cache Implementation (Variation #1)
### LRU Cache Implementation (Variation #1) Build a Least Recently Used (LRU) Cache with get() and put() in O(1). Write an optimal, production-ready solution adhering to JavaScript best practices and type boundaries.
LRU Cache Implementation (Variation #2)
### LRU Cache Implementation (Variation #2) Build a Least Recently Used (LRU) Cache with get() and put() in O(1). Write an optimal, production-ready solution adhering to JavaScript best practices and type boundaries.
LRU Cache Implementation (Variation #3)
### LRU Cache Implementation (Variation #3) Build a Least Recently Used (LRU) Cache with get() and put() in O(1). Write an optimal, production-ready solution adhering to JavaScript best practices and type boundaries.
LRU Cache Implementation (Variation #4)
### LRU Cache Implementation (Variation #4) Build a Least Recently Used (LRU) Cache with get() and put() in O(1). Write an optimal, production-ready solution adhering to JavaScript best practices and type boundaries.
Event Emitter Class (Variation #1)
### Event Emitter Class (Variation #1) Create a custom Pub/Sub EventEmitter with on, off, and emit methods. Write an optimal, production-ready solution adhering to JavaScript best practices and type boundaries.
Event Emitter Class (Variation #2)
### Event Emitter Class (Variation #2) Create a custom Pub/Sub EventEmitter with on, off, and emit methods. Write an optimal, production-ready solution adhering to JavaScript best practices and type boundaries.
Event Emitter Class (Variation #3)
### Event Emitter Class (Variation #3) Create a custom Pub/Sub EventEmitter with on, off, and emit methods. Write an optimal, production-ready solution adhering to JavaScript best practices and type boundaries.
Event Emitter Class (Variation #4)
### Event Emitter Class (Variation #4) Create a custom Pub/Sub EventEmitter with on, off, and emit methods. Write an optimal, production-ready solution adhering to JavaScript best practices and type boundaries.
Merge K Sorted Lists (Variation #1)
### Merge K Sorted Lists (Variation #1) Merge k sorted linked lists and return it as one sorted list using heaps. Write an optimal, production-ready solution adhering to Python best practices and type boundaries.
Merge K Sorted Lists (Variation #2)
### Merge K Sorted Lists (Variation #2) Merge k sorted linked lists and return it as one sorted list using heaps. Write an optimal, production-ready solution adhering to Python best practices and type boundaries.
Merge K Sorted Lists (Variation #3)
### Merge K Sorted Lists (Variation #3) Merge k sorted linked lists and return it as one sorted list using heaps. Write an optimal, production-ready solution adhering to Python best practices and type boundaries.
Merge K Sorted Lists (Variation #4)
### Merge K Sorted Lists (Variation #4) Merge k sorted linked lists and return it as one sorted list using heaps. Write an optimal, production-ready solution adhering to Python best practices and type boundaries.
Binary Search Implementation (Variation #1)
### Binary Search Implementation (Variation #1) Find target in a sorted array in O(log N) time. Write an optimal, production-ready solution adhering to Python best practices and type boundaries.
Binary Search Implementation (Variation #2)
### Binary Search Implementation (Variation #2) Find target in a sorted array in O(log N) time. Write an optimal, production-ready solution adhering to Python best practices and type boundaries.