Public viewer
The journey of every round
Every round-trip in the corpus is public. Open one to see the prompt, the zero-point index, the baseline response, the enhanced response, and how each grader read the difference. Leave a comment if a grader's reading lands — or doesn't.
Define a DbContext with two entities (Order and Customer) related one-to-many. Show the OnModelCreating configuration and a simple query that loads orders with their customer.
Set up a RabbitMQ consumer that subscribes to an 'orders.created' queue. Show the publish call from the order service side.
Write a MediatR IRequestHandler<TRequest,TResponse> for a 'GetUserById' query, plus an IPipelineBehavior that writes the request type name to console before invoking the next handler.
Implement cache-aside using IDistributedCache backed by Redis to memoise an expensive lookup that returns a customer profile.
Write a BackgroundService that reads work items from an in-memory queue and processes each one with a small delay, with graceful shutdown handling.
Configure JwtBearer authentication so tokens are accepted from either the Authorization header or a query string parameter. Include the validation parameters.
Implement an IAuthorizationHandler for a 'CanEditOwn' permission that checks the current user owns the resource being modified.
Create an ApiController class with a single GET ActionResult that returns a product or NotFound when no product matches the route id.
Write an IMiddleware implementation that adds an X-Request-ID header to every response. Show it being registered in the request pipeline.
Write a custom equality comparer (IEqualityComparer<Person>) that treats two Person records as equal when Email lowercased matches. Include GetHashCode.
Write a using-block over a StreamReader that reads each line and counts occurrences of the word 'foo'. No async.
Implement a multitenant request-scoped ITenantInfo resolver that reads the tenant id from a custom header and falls back to subdomain.
Implement a generic repository for read-only access to entities by id using a DbContext. Include AsNoTracking and a CancellationToken parameter.
Write a BackgroundService that reads work items from an in-memory queue and processes each one with a small delay, with graceful shutdown handling.
Write an IMiddleware implementation that adds an X-Request-ID header to every response. Show it being registered in the request pipeline.
Find the date with the highest number of new signups in a users table.
Use HAVING to filter aggregate results: orders with more than 5 line items.
Write a SQL query joining 4 tables (customers, orders, line_items, products) to produce a customer-order-product report.
Find products in the top 10 percent by revenue using NTILE.
Calculate the gap in days between consecutive logins per user using LAG.
Use EXISTS to find customers with at least one cancelled order.
Find the median salary in each department using window functions.
Write a recursive CTE to walk an employee-manager hierarchy from any starting employee.
Use UNION to combine current_employees and former_employees, marking source.