prompt stringlengths 19 668 | tokens int64 8 149 | characters int64 19 668 |
|---|---|---|
Analyze the time complexity and compare it to the most common alternative for the same task of convex hull (Jarvis march) on an input of size n=26,040,588. Provide a rigorous justification. | 42 | 189 |
Walk through a system design for a ride-sharing dispatch service (like Uber / Lyft). Key constraints: driver-passenger matching within 2 seconds; ETA computation on a live traffic graph updated every 66 seconds. Cover: high-level component diagram, database choice and justification, scaling bottlenecks and mitigation, ... | 66 | 340 |
Calculate the volume of a cylinder with radius 13.81 and height 15.03. | 19 | 70 |
Calculate the heat required to raise the temperature of 0.6 kg of water from 25°C to 65°C. Show all work. | 29 | 105 |
Calculate the five-number summary of this data set: [87, 26, 88, 97, 22, 78, 84, 21]. | 34 | 85 |
Evaluate the definite integral of f(x) = 4x^5 from 4 to 7. | 21 | 58 |
Divide the polynomial P(x) = -5x^2 + 5 by (x + 5) using synthetic division. | 26 | 75 |
Implement a Python function that solves: Merge 4 sorted linked lists into one sorted linked list. Write the solution and a full set of unit tests covering edge cases. | 33 | 166 |
Calculate the pH of a 0.577 M solution of NaOH. Show your calculation step by step. | 23 | 83 |
Write the opening chapter (800-1200 words) of a fantasy novel set in a bustling medieval market during a plague. Start mid-conversation between two characters who know far more than the reader. | 40 | 193 |
An object starts with velocity 30.6 m/s and accelerates at 4.8 m/s² for 9.2 seconds. Find the displacement. Show all equations used. | 38 | 132 |
A test for a disease has 98% sensitivity and 95% specificity. If 5% of the population has the disease, what is the probability that a person who tests positive actually has the disease? Use Bayes' theorem. | 48 | 205 |
Walk through a system design for a real-time collaborative text editor (like Google Docs). Key constraints: operational transformation or CRDT conflict resolution; presence indicators and shared cursor positions; offline editing with sync-on-reconnect for 13 concurrent users. Cover: API design, scaling bottlenecks and ... | 65 | 366 |
Convert EA9F (base 16) to base 10. Show the conversion process. | 19 | 63 |
Write a 1500-word space opera short story set in a desert city built on the back of a colossal tortoise, featuring a weatherwoman who can make local weather forecasts by reading emotional patterns in people. Explore the theme of memory and identity. | 50 | 249 |
A 32.3 kg object is pushed with a force of 185.3 N at an angle of 4° on a surface with coefficient of friction 0.34. Find the acceleration. Draw a free-body diagram description. | 48 | 177 |
Solve for x: 5x - 37 = 11. | 14 | 26 |
Walk through a system design for a restaurant food-delivery marketplace (like DoorDash). Key constraints: menu and restaurant catalog service handling 5M SKUs; order matching across 46K concurrent active drivers; real-time 15-second delivery ETA updates. Cover: database choice and justification, high-level component di... | 79 | 418 |
Analyze the worst-case time complexity and describe which specific input pattern triggers it of sparse table for range minimum queries on an input of size n=1,629,214. Provide a rigorous justification. | 39 | 201 |
Write the opening chapter (800-1200 words) of a solarpunk novel set in a psychiatric hospital in 1920s Vienna where the patients know something the doctors don't. Open with a letter, message, or fragment of writing that sets up mystery. | 53 | 236 |
Find the inverse of the matrix A = [[0, -1, -2], [-5, 3, 3], [0, 5, -2]]. | 35 | 73 |
Refactor the following JavaScript code smell: a procedural JavaScript script with 8 global variables and 8 functions that share mutable state through those globals. Apply introduce a clean abstraction layer (interface/protocol) to decouple the logic from its dependencies. Show a clear before-and-after and explain each ... | 65 | 348 |
Simplify: 5^3 × 5^0. State the exponent rule used. | 19 | 50 |
Build a complete, single-page recipe and food blog website using only HTML, CSS, and vanilla JavaScript (no frameworks). The design should be playful and vibrant. Include: accessible ARIA labels and semantic HTML5 landmark elements; sticky navigation bar with smooth-scroll anchor links; dark/light mode toggle with loca... | 81 | 429 |
Given a 5-GHz processor with 16-stage pipeline, L1 hit=6 cycles, L2 hit=15 cycles, L3 hit=45 cycles, DRAM=221 cycles, and miss rates L1=10%, L2=8%, L3=4%: compute the average memory access time (AMAT), effective CPI (assuming 1.8 IPC in a stall-free pipeline), and identify whether this workload is memory-bound or compu... | 101 | 354 |
Solve |5x - 2| = 4. List all solutions. | 16 | 39 |
Write a Java program using the Stream API and lambda expressions to read a large CSV, group rows by a key column, aggregate totals, and print a sorted leaderboard — handle 242,463 rows efficiently. | 41 | 197 |
Design and implement a REST API for appointments in ASP.NET Core (C#), covering full CRUD (Create, Read, Update, Delete). Include: filtering by field, query-param validation, response caching, rate limiting per IP, bulk delete endpoint. Include an OpenAPI spec for the endpoints. | 59 | 279 |
Calculate the volume of a cylinder with radius 1.42 and height 21.33. | 19 | 69 |
Write a 1000-word mystery short story set in a Victorian London where magic has just been discovered, featuring a cult deprogrammer who begins to doubt whether the rest of the world is the cult. Explore the theme of the meaning of humanity. | 50 | 240 |
Implement the Repository design pattern in TypeScript using a plugin or extension architecture. Explain when and why you would use this pattern, and when you would not. | 31 | 168 |
Explain how a B+ tree non-clustered (secondary) index is used by the query planner for a query scanning ~68,248,838 rows. Discuss index selectivity, I/O cost, and when the planner would prefer a sequential scan. | 51 | 211 |
Calculate the heat required to raise the temperature of 5.3 kg of water from 39°C to 86°C. Show all work. | 29 | 105 |
Build a complete, single-page wedding invitation site website using only HTML, CSS, and vanilla JavaScript (no frameworks). The design should be bold and colorful. Include: CSS custom properties (variables) for theming; responsive mobile-first layout using CSS Grid; contact form with client-side validation; sticky navi... | 92 | 490 |
Calculate the median of this data set: [69, 24, 42, 18, 69, 9, 40, 35, 38, 19, 7]. | 41 | 82 |
Walk through a system design for an e-commerce checkout and payment system. Key constraints: idempotent payment charge API and exactly-once guarantee; saga pattern for rollback across order, inventory, and payment services. Cover: failure modes and resiliency, high-level component diagram, database choice and justifica... | 60 | 325 |
Given a 5-GHz processor with 5-stage pipeline, L1 hit=4 cycles, L2 hit=28 cycles, L3 hit=31 cycles, DRAM=146 cycles, and miss rates L1=20%, L2=14%, L3=9%: compute the average memory access time (AMAT), effective CPI (assuming 1.1 IPC in a stall-free pipeline), and identify whether this workload is memory-bound or compu... | 101 | 354 |
An ideal gas at 373 K and 4.2 atm occupies 3.8 L. If compressed to 2.0 L at constant temperature, what is the new pressure? Show all work. | 42 | 138 |
Using Actix-web (Rust), build a REST API that handles nested resource endpoints (parent → child relationships) for audit logs. Include: request body validation, filtering by field, multi-field sorting, OAuth2 scope checks. Add middleware for request logging and correlation IDs. | 54 | 278 |
Walk through a system design for a real-time collaborative text editor (like Google Docs). Key constraints: presence indicators and shared cursor positions; offline editing with sync-on-reconnect for 10 concurrent users; operational transformation or CRDT conflict resolution. Cover: scaling bottlenecks and mitigation, ... | 68 | 384 |
Solve the system of equations: -x - 7y = -7 and 4x + 7y = 7. Show your method (substitution or elimination). | 36 | 108 |
Show the Abstract Factory design pattern in Swift in the context of a user authentication flow. Write unit tests that verify the pattern behaves correctly. | 27 | 155 |
Calculate the de Broglie wavelength of an electron moving at 9559988.0 m/s. | 21 | 75 |
Describe the trade-offs when designing a system with 2372 nodes and a 0.1% annual node failure rate: focus on data partitioning: range sharding hot-spot risk vs hash sharding rebalancing cost vs directory-based sharding. | 52 | 220 |
Given the network 10.176.0/21, calculate the subnet mask, total IPs, number of usable hosts, network address, broadcast address, and first/last usable host IPs. Then show how to split it into 3 equal-sized subnets, listing the network address and usable range of each. | 65 | 268 |
Build a complete, single-page online resume/CV page website using only HTML, CSS, and vanilla JavaScript (no frameworks). The design should be retro-inspired. Include: sticky navigation bar with smooth-scroll anchor links; Google Fonts and Font Awesome icons integration; FAQ accordion with smooth expand/collapse; anima... | 83 | 440 |
In Python, implement a DP solution for minimum edit distance (Levenshtein) between strings of length ~16, with path reconstruction. Reconstruct the optimal solution (not just its value) and trace through the backtracking. | 46 | 221 |
Analyze the best-case, average-case, and worst-case time complexity with a justification for each scenario of Ford-Fulkerson max flow on an input of size n=24,428,038. Provide a rigorous justification. | 44 | 201 |
Build a fully playable Connect Four game using HTML/CSS/JavaScript and pure JavaScript (no external libraries). Implement the following mechanics: gravity simulation placing discs in the lowest empty row; optional AI opponent using minimax with alpha-beta pruning; 7×6 grid rendered with CSS for two-player disc dropping... | 114 | 595 |
Write a 2000-word cli-fi (climate fiction) short story set in a lighthouse at the edge of reality, featuring a soldier turned puppeteer whose marionettes move when he doesn't want them to. Explore the theme of the clash between tradition and progress. | 54 | 251 |
Write a 1000-word cli-fi (climate fiction) short story set in a monastery on a mountain that exists between dimensions, featuring a cult deprogrammer who begins to doubt whether the rest of the world is the cult. Explore the theme of the beauty of impermanence. | 58 | 261 |
Build a complete, single-page book club landing page website using only HTML, CSS, and vanilla JavaScript (no frameworks). The design should be glassmorphism-styled. Include: FAQ accordion with smooth expand/collapse; animated statistics/counters section; team/about section with profile cards. Use semantic HTML5, ensur... | 75 | 382 |
Find the complete prime factorization of 91723. | 11 | 47 |
Explain responsible AI: demographic parity, equalized odds, and counterfactual fairness — a concrete case study in a production ML system handling 14,888,103 predictions per day. | 37 | 178 |
Explain responsible AI: demographic parity, equalized odds, and counterfactual fairness — a concrete case study in a production ML system handling 84,133,430 predictions per day. | 37 | 178 |
Convert 6443 (base 16) to base 8. Show the conversion process. | 19 | 62 |
Write a Java program using the Stream API and lambda expressions to read a large CSV, group rows by a key column, aggregate totals, and print a sorted leaderboard — handle 492,636 rows efficiently. | 41 | 197 |
Solve the inequality: 8x - 2 ≤ -2. Express the solution in interval notation. | 21 | 77 |
Write a Spring Boot (Java) backend service exposing paginated list endpoint with aggregation counts for followers. Include: structured logging, OAuth2 scope checks, cursor-based pagination, response caching, API key authentication, request ID tracing. Add middleware for request logging and correlation IDs. | 54 | 307 |
Given points A(-11, 1) and B(-6, -6), find the slope of the line passing through these two points. | 29 | 98 |
Find the area of a triangle with base 8.15 and height 11.66. | 19 | 60 |
Demonstrate the Memento design pattern in C++ with a practical a user authentication flow example. Include a before-and-after showing code without and with the pattern applied. | 34 | 176 |
Build a complete, single-page fitness trainer website website using only HTML, CSS, and vanilla JavaScript (no frameworks). The design should be minimalist and modern. Include: dark/light mode toggle with localStorage persistence; lazy-loading images using the loading='lazy' attribute; animated statistics/counters sect... | 84 | 454 |
Build a fully playable Breakout / Arkanoid game using HTML5 Canvas and pure JavaScript (no external libraries). Implement the following mechanics: multi-level progression with different brick layouts per level; paddle controlled by keyboard arrow keys and mouse; grid of colorful destructible bricks with hit points; bal... | 103 | 574 |
Build a complete, single-page university department page website using only HTML, CSS, and vanilla JavaScript (no frameworks). The design should be retro-inspired. Include: breadcrumb navigation with structured data markup; accessible ARIA labels and semantic HTML5 landmark elements; lazy-loading images using the loadi... | 79 | 428 |
Refactor the following Java code smell: a Java class with 1264 lines doing data fetching, transformation, caching, validation, and UI rendering — a clear God Object. Apply apply the Strangler Fig pattern to incrementally replace the problematic code while keeping tests green. Show a clear before-and-after and explain e... | 68 | 352 |
A 47.2 Ω resistor, 55.4 Ω resistor, and 82.1 Ω resistor are connected in series. Find the total resistance and current if connected to a 5 V battery. Show your calculations. | 46 | 173 |
Write a 750-word dystopian short story set in a labyrinthine city that grows a new district every full moon, featuring a terraforming engineer who discovers the planet being terraformed is already inhabited. Explore the theme of the moment a person realizes they have become who they feared. | 56 | 291 |
Find the inverse of the matrix A = [[3, -3, 0, 3], [-4, -5, 4, 3], [4, 5, 3, -3], [4, -1, 5, 3]]. | 56 | 97 |
Write a 1200-word dystopian short story set in a monastery on a mountain that exists between dimensions, featuring a priest who has lost faith but cannot lose his congregation. Explore the theme of the beauty of impermanence. | 46 | 225 |
Write a C# solution for the following problem: Given an array of 8 integers, find all unique triplets that sum to zero. Provide the solution and trace through it on at least two example inputs. | 42 | 193 |
Solve |7x - 19| = 6. List all solutions. | 16 | 40 |
Convert 1101100101111011 (base 2) to base 16. Show the conversion process. | 23 | 74 |
Write a 1000-word horror short story set in a small Appalachian town hiding a dark secret, featuring a refugee from a timeline where their nation won the war, now living in one where it lost. Explore the theme of the cost of immortality. | 51 | 237 |
Write a 500-word romance short story set in a colony on Mars during its first revolution, featuring an elderly woman who receives postcards from her younger self. Explore the theme of the corruption of power. | 40 | 208 |
Walk through a system design for a metrics collection and alerting platform (like Prometheus + Grafana). Key constraints: label cardinality explosion: mitigation strategies at 100K time series; alerting via threshold rules and anomaly detection, routing to PagerDuty; time-series compression with delta-of-delta encoding... | 91 | 483 |
In JavaScript, implement a DP solution for the number of ways to climb 25 stairs taking up to 3 steps at a time. Reconstruct the optimal solution (not just its value) and trace through the backtracking. | 46 | 202 |
Explain how a composite covering index is used by the query planner for a query scanning ~4,763,970 rows. Discuss index selectivity, I/O cost, and when the planner would prefer a sequential scan. | 43 | 195 |
Write a 750-word solarpunk short story set in a floating island above an endless desert, featuring a twin who discovers their sibling is living a life they were meant to lead. Explore the theme of freedom versus security. | 45 | 221 |
A right triangle has one leg of length 24 and hypotenuse √1252. Find the other leg. | 23 | 83 |
Solve the system of equations: 4x - 2y = -8 and -6x - 6y = 1. Show your method (substitution or elimination). | 37 | 109 |
Describe the trade-offs when designing a system with 8280 nodes and a 3% annual node failure rate: focus on data partitioning: range sharding hot-spot risk vs hash sharding rebalancing cost vs directory-based sharding. | 50 | 218 |
Find the determinant of the matrix A = [[5, -2, 2, -5], [-4, 4, 5, -5], [-3, 4, 0, -5], [-1, -2, -4, 4]]. | 56 | 105 |
Is 7212 a prime number? Prove your answer. | 13 | 42 |
Given a 4-GHz processor with 18-stage pipeline, L1 hit=3 cycles, L2 hit=10 cycles, L3 hit=34 cycles, DRAM=163 cycles, and miss rates L1=7%, L2=9%, L3=4%: compute the average memory access time (AMAT), effective CPI (assuming 1.9 IPC in a stall-free pipeline), and identify whether this workload is memory-bound or comput... | 101 | 353 |
Build a complete, single-page news magazine homepage website using only HTML, CSS, and vanilla JavaScript (no frameworks). The design should be warm and inviting. Include: dark/light mode toggle with localStorage persistence; Google Fonts and Font Awesome icons integration; animated statistics/counters section; CSS tra... | 100 | 557 |
Explain the testing pyramid (unit, integration, end-to-end) and implement example tests at each level for a CI/CD deployment job feature in Go (testing + testify). | 34 | 163 |
Walk through a system design for a metrics collection and alerting platform (like Prometheus + Grafana). Key constraints: label cardinality explosion: mitigation strategies at 84K time series; alerting via threshold rules and anomaly detection, routing to PagerDuty. Cover: failure modes and resiliency, data model / sch... | 70 | 354 |
Calculate the de Broglie wavelength of an electron moving at 7176561.0 m/s. | 21 | 75 |
An object starts with velocity 21.0 m/s and accelerates at -0.6 m/s² for 15.4 seconds. Find the final velocity. Show all equations used. | 39 | 136 |
Using Spring Boot (Java), build a REST API that handles read-heavy endpoints (list + detail) with write support for tickets. Include: error handling middleware, API key authentication, filtering by field. Add a Dockerfile and docker-compose.yml. | 49 | 245 |
Write a 750-word magical realism short story set in a bustling medieval market during a plague, featuring a scientist whose experiment succeeded in a way she never intended. Explore the theme of grief and healing. | 40 | 213 |
Walk through a system design for a large-scale web crawler. Key constraints: distributed URL deduplication via Bloom filter at 50B URLs; content change detection using checksums and re-crawl scheduling; politeness (robots.txt, crawl-delay) and frontier priority queue. Cover: functional and non-functional requirements, ... | 73 | 375 |
Write a 1000-word fantasy short story set in a deep space anomaly where castaways from different ships have formed a society, featuring a forensic accountant who finds a financial trail leading to their own past. Explore the theme of freedom versus security. | 49 | 258 |
A 33.9 kg object falls from a height of 11.5 m. Calculate its kinetic energy just before hitting the ground (ignoring air resistance). Show your calculations. | 37 | 158 |
Walk through a system design for a distributed file-sync service (like Dropbox). Key constraints: conflict resolution for concurrent edits on 4 devices; delta sync transmitting only changed chunks; chunked upload with content-addressable deduplication, block size 4 MB. Cover: database choice and justification, high-lev... | 76 | 415 |
Given a 5-GHz processor with 7-stage pipeline, L1 hit=4 cycles, L2 hit=28 cycles, L3 hit=41 cycles, DRAM=126 cycles, and miss rates L1=17%, L2=12%, L3=1%: compute the average memory access time (AMAT), effective CPI (assuming 1.3 IPC in a stall-free pipeline), and identify whether this workload is memory-bound or compu... | 101 | 354 |
Implement a production-ready REST API for managing blog articles with Django REST Framework (Python). Include: database transactions, request body validation, pagination, query-param validation, event publishing on write. Include integration tests using a test database. | 45 | 270 |
An object starts with velocity 46.3 m/s and accelerates at -9.6 m/s² for 18.1 seconds. Find the displacement. Show all equations used. | 38 | 134 |
Calculate the volume of a sphere with radius 12.17. | 13 | 51 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.