Machine Coding RoundAI Architectural Code Review

Machine Coding & Refactoring Arena

Step-by-step engineering challenges graded from 1 to 10 Points. Write production code in our interactive editor, and receive instant, deep AI code reviews highlighting code smells, memory leaks, refactoring strategies, and staff-level solutions.

Coding Points
0/ 73 pts
Completed
0/ 10
1 PointBasic

Robust Event Emitter with Wildcards & Scope Cleanup

Build a production-grade Pub/Sub Event Emitter supporting wildcard namespaces, listener priority, and auto-cleanup unsubscriptions.

JavaScriptDesign PatternsObserver PatternMemory Management
2 PointsBasic

Enterprise Deep Clone Engine with Circular Reference & Type Preservation

Implement a complete recursive deep clone engine handling circular object graphs, TypedArrays, Sets, Maps, and Symbol keys.

AlgorithmsWeakMapRecursionMemory Safety
3 PointsIntermediate

Async Promise Pool with Concurrency Limiter & Jittered Retries

Build an async worker queue that executes hundreds of async tasks with strict concurrency throttling, retry backoff with jitter, and AbortController.

AsyncConcurrencyPromise PoolNode.jsFlow Control
4 PointsIntermediate

Reactive Signal, Computed & Effect Engine from Scratch

Build a fine-grained reactive primitives system (Signals, Computed Signals, and Auto-Tracking Effects) with dependency graph cleanup and microtask batching.

SignalsReactAngularObserver PatternReactivity
5 PointsAdvanced

High-Performance Virtualized List & Dynamic Windowing Engine

Implement a DOM-agnostic virtual list windowing algorithm computing visible indices, dynamic height caches, and overscan buffer offsets for 100,000+ items at 60 FPS.

DOM VirtualizationAlgorithmsBinary SearchPerformanceReact
6 PointsAdvanced

Sliding-Window Log & Token Bucket Dual Rate Limiter

Build an API Rate Limiter implementing Token Bucket (for smooth bursts) and Sliding-Window Counter (for strict interval protection) with memory pruning.

Rate LimitingToken BucketSliding WindowSecurityAlgorithms
7 PointsExpert

Resilient WebSocket Client with Heartbeat, Auto-Reconnect & Offline Queue

Build an enterprise WebSocket connection manager featuring ping/pong heartbeat dead-socket detection, exponential jittered reconnection, and offline message queue replay.

WebSocketsReal-timeNetwork ResilienceArchitecture
8 PointsExpert

Offline-First Optimistic Mutation Queue with Rollback & State Reconciliation

Build an optimistic UI mutation orchestrator managing local cache patching, rollback snapshots on server error, and offline sync replay with conflict resolution.

Optimistic UIState ManagementOffline-FirstRollbackTransactions
9 PointsStaff

In-Memory MVCC Transactional Key-Value Store with Snapshot Isolation

Build an ACID in-memory key-value store with Multi-Version Concurrency Control (MVCC), transaction commit/rollback, and snapshot isolation.

MVCCDatabase InternalsTransactionsACIDSystem Design
10 PointsStaff

Distributed Priority Job Scheduler with Lock Leasing & Dead-Letter Queue

Build a distributed priority task scheduler featuring min-heap priority queues, worker heartbeat lock leases, exponential backoff, and poison pill DLQ routing.

Distributed SystemsHeapLeader ElectionLock LeasingDead Letter Queue
1 PointBasic

MEAN Stack: Angular & RxJS Debounced Autocomplete Search Engine

Build an Angular & RxJS search manager with debouncing, distinct query caching, TTL eviction, and request cancellation.

AngularRxJSswitchMapMEAN StackCachingDebounce
2 PointsBasic

MEAN Stack: Express.js Composable Middleware Chain & RFC 7807 Error Boundary

Build an Express middleware pipeline runner supporting async NextFunction, JWT bearer parsing, NoSQL sanitization, and RFC 7807 error responses.

ExpressNodeJSMEAN StackMiddlewareSecurityError Handling
3 PointsIntermediate

MEAN Stack: Angular Reactive Form Delta Tracker & Auto-Save Sync Engine

Design an Angular reactive form delta engine that computes dirty field patches, debounces auto-save triggers, and provides rollback recovery.

AngularReactive FormsMEAN StackOptimistic UIState Sync
1 PointBasic

MERN Stack: React useAsync & useDebounce Hook with AbortController Cancellation

Implement a production-grade React async state manager with AbortController signal cleanup and stale response prevention.

ReactCustom HooksMERN StackAbortControllerAsync
2 PointsBasic

MERN Stack: Lightweight Reactive State Store with Selectors & Middleware

Build a mini-Zustand/Redux state store with immutable patchState, selector memoization, and logger/persistence middleware.

ReactState ManagementMERN StackZustandReduxDesign Patterns
3 PointsIntermediate

MERN Stack: Axios/Fetch Interceptor with Silent JWT Token Refresh Queue

Implement an HTTP interceptor that catches 401s, pauses concurrent requests in a FIFO promise queue, refreshes the token, and replays failed requests.

ReactMERN StackJWTSecurityInterceptorsAsync Queue
1 PointBasic

MongoDB: In-Memory Query Matcher & Aggregation Pipeline Filter

Build an in-memory document query engine supporting $eq, $gt, $in, $regex, $and, $or, and $project/$sort pipeline stages.

MongoDBNoSQLDatabase InternalsQuery EngineJSON
2 PointsBasic

MongoDB: Mongoose Schema Validator & Sanitizer Engine

Build a declarative schema enforcement engine with type casting, required checks, enum validation, custom async validators, and default values.

MongoDBMongooseSchemaValidationBackend
3 PointsIntermediate

MongoDB: Keyset Cursor-Based Pagination & Sorting Engine

Implement high-performance cursor pagination with base64 token encoding, avoiding offset skip() performance degradation on large collections.

MongoDBPaginationKeyset PaginationPerformanceNoSQL