prompt stringlengths 19 668 | tokens int64 8 149 | characters int64 19 668 |
|---|---|---|
Build a write-optimized endpoints with idempotency keys REST API for comments using ASP.NET Core (C#). Include: OAuth2 scope checks, event publishing on write, rate limiting per user, bulk create endpoint, pagination, soft delete. Provide example curl commands for each endpoint. | 57 | 279 |
Solve in Java: Given an array of 6 integers, find all unique triplets that sum to zero. Analyze time and space complexity for each approach you consider. | 33 | 153 |
A metal block of mass 2.9 kg at 170°C is placed in 2.5 kg of water at 30°C. Find the equilibrium temperature. (Specific heat of metal: 421 J/kg·K) Show all work. | 51 | 161 |
Solve the quadratic equation 5x² + 19x - 18 = 0. Use the quadratic formula and simplify completely. | 27 | 99 |
In Rust, implement a DP solution for the unbounded knapsack problem with 6 item types and capacity 98. Show the recurrence relation and filled DP table on a small example. | 37 | 171 |
Write a JavaScript implementation of the Factory Method pattern applied to a file system abstraction. Write unit tests that verify the pattern behaves correctly. | 27 | 161 |
Code depth-first search with cycle detection in JavaScript, building it without using any library sorting or graph utilities. Include time/space complexity analysis and test cases. | 32 | 180 |
Write a 1500-word literary fiction short story set in a deep space anomaly where castaways from different ships have formed a society, featuring a librarian who finds a book that rewrites itself daily. Explore the theme of love across impossible distances. | 49 | 256 |
Analyze the space complexity and discuss memory layout and cache performance implications of Floyd-Warshall APSP on an input of size n=42,709,457. Provide a rigorous justification. | 37 | 180 |
Determine whether 16517 is divisible by 3. Explain the divisibility rule you used. | 19 | 82 |
Build a compressed trie (Patricia/PATRICIA tree) supporting longest-prefix lookup in JavaScript without using any standard library collection types. Document the invariants and explain how each operation preserves them. | 40 | 219 |
Solve the quadratic equation 4x² - 20x - 9 = 0. Use the quadratic formula and simplify completely. | 27 | 98 |
Write a 500-word fantasy short story set in a floating island above an endless desert, featuring a soldier turned puppeteer whose marionettes move when he doesn't want them to. Explore the theme of how language shapes the way we experience the world. | 50 | 250 |
Given points A(2, -17) and B(14, -20), find the equation of the line passing through these two points. | 29 | 102 |
Build a complete, single-page law firm website website using only HTML, CSS, and vanilla JavaScript (no frameworks). The design should be elegant and professional. Include: testimonials slider/carousel built with vanilla JS; responsive mobile-first layout using CSS Grid; a floating 'back to top' button that appears aft... | 92 | 477 |
In a double-slit experiment with slit separation 0.54 mm and screen distance 3.8 m, find the fringe spacing for light of wavelength 564 nm. Show your work. | 39 | 155 |
Write the opening chapter (800-1200 words) of a biopunk novel set in a psychiatric hospital in 1920s Vienna where the patients know something the doctors don't. Open in a moment of silence just after a catastrophic event. | 49 | 221 |
A car travels 339 km using 40 liters of fuel. At this rate, how many liters are needed to travel 1391 km? Show your complete solution. | 34 | 134 |
Find the inverse of the matrix A = [[-1, -2], [-3, 1]]. | 21 | 55 |
An ideal gas at 363 K and 1.3 atm occupies 13.6 L. If compressed to 2.1 L at constant temperature, what is the new pressure? Show all work. | 42 | 139 |
What volume of 1.9 M NaOH is needed to neutralize 21.0 mL of 0.4 M HCl? Show your calculation step by step. | 37 | 107 |
Implement the Bridge design pattern in C++ using a real-world e-commerce scenario. Write unit tests that verify the pattern behaves correctly. | 26 | 142 |
Multiply matrices A = [[1, 5, 2], [-3, 2, 1], [-4, 1, 5]] and B = [[1, 1], [1, 2], [-1, 3]]. Show each element calculation. | 57 | 123 |
Code radix sort (MSD) in Rust, building it without using any library sorting or graph utilities. Show the algorithm on a concrete input, then analyze worst-case and average-case complexity. | 38 | 189 |
A client at 19 ms RTT must transfer a 11 MB file. Calculate and compare the download time over HTTP/1.1 (no pipelining, 6 parallel connections), HTTP/2 (single multiplexed connection), and HTTP/3 (QUIC). Account for TCP slow-start with an initial window of 6 segments (each 1447 bytes) and a 3.5% packet-loss rate. | 86 | 314 |
Build a complete, single-page real estate listing page website using only HTML, CSS, and vanilla JavaScript (no frameworks). The design should be dark-themed and sleek. Include: testimonials slider/carousel built with vanilla JS; dark/light mode toggle with localStorage persistence; breadcrumb navigation with structure... | 100 | 539 |
Build a fully playable Wordle clone game using HTML/CSS/JavaScript and pure JavaScript (no external libraries). Implement the following mechanics: CSS 3D flip animation for tile reveal on each guess; color-coded tile feedback: green (exact), yellow (wrong position), gray (absent); win/lose overlay revealing the answer;... | 115 | 579 |
Calculate the capacitance of a parallel plate capacitor with plate area 0.095 m² and separation 0.009 m. Show your calculations. | 30 | 128 |
Write a 1000-word post-apocalyptic short story set in a deep-sea mining facility that has lost contact with the surface, featuring a hospice nurse who writes down the last words of the dying and notices a pattern. Explore the theme of love across impossible distances. | 54 | 268 |
Show the Memento design pattern in Python in the context of a game engine component. Include a before-and-after showing code without and with the pattern applied. | 31 | 162 |
Build a fully playable Flappy Bird clone game using HTML5 Canvas and pure JavaScript (no external libraries). Implement the following mechanics: smooth game-over screen with restart option; bird rotation based on velocity; gravity-based player falling with spacebar/click to flap; high score persistence via localStorage... | 87 | 472 |
Write a Python implementation of the Factory Method pattern applied to a game engine component. Show how it interacts with at least one other pattern. | 27 | 150 |
Refactor the following C# code smell: a C# class with 1483 lines doing data fetching, transformation, caching, validation, and UI rendering — a clear God Object. Apply flatten nesting using guard clauses, early returns, and extracted helper functions. Show a clear before-and-after and explain each improvement and its b... | 66 | 327 |
A client at 109 ms RTT must transfer a 433 MB file. Calculate and compare the download time over HTTP/1.1 (no pipelining, 2 parallel connections), HTTP/2 (single multiplexed connection), and HTTP/3 (QUIC). Account for TCP slow-start with an initial window of 6 segments (each 1442 bytes) and a 2.3% packet-loss rate. | 86 | 316 |
Write a complete implementation of a stack with push, pop, peek, and isEmpty operations in C from scratch. Add an iterator so the structure can be used in a for-each loop. | 39 | 171 |
Solve for x: -6x - 22 = 20. | 14 | 27 |
Write a 750-word cli-fi (climate fiction) short story set in a cathedral carved into a glacier, slowly melting, featuring an archivist cataloguing a library of untold stories that would change history. Explore the theme of the corruption of power. | 52 | 247 |
Compute the sum of 69646 and 4697. Show your work. | 16 | 50 |
Build a fully playable Wordle clone game using HTML/CSS/JavaScript and pure JavaScript (no external libraries). Implement the following mechanics: 5-letter secret word with 6 guess attempts; on-screen keyboard with per-key color state updates; daily streak counter using localStorage; CSS 3D flip animation for tile reve... | 126 | 622 |
A 62.2 kg object is pushed with a force of 407.1 N at an angle of 37° on a surface with coefficient of friction 0.27. Find the acceleration. Draw a free-body diagram description. | 48 | 178 |
Build a parallel prefix-sum (scan) over an array of 6,379,041 integers in Python using the language's native concurrency primitives. Benchmark throughput against a single-threaded baseline with inputs of at least 3 different sizes. | 48 | 231 |
A test for a disease has 91% sensitivity and 96% specificity. If 3% 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 |
Find the area of a triangle with base 3.86 and height 20.61. | 19 | 60 |
Implement the Unit of Work design pattern in Swift using a real-world e-commerce scenario. Write unit tests that verify the pattern behaves correctly. | 27 | 150 |
Find the complete prime factorization of 36897. | 11 | 47 |
Write a Fiber (Go) backend service exposing full CRUD (Create, Read, Update, Delete) for projects. Include: filtering by field, OpenAPI / Swagger docs, event publishing on write, bulk create endpoint, request ID tracing. Show how to handle concurrent write conflicts. | 56 | 267 |
A 14.0 Ω resistor, 80.7 Ω resistor, and 21.9 Ω resistor are connected in series. Find the total resistance and current if connected to a 14 V battery. Show your calculations. | 46 | 174 |
Calculate the gravitational force between a 78.7 kg mass and a 86653.0 kg mass separated by 35.0 m. | 29 | 99 |
Write a 1200-word historical fiction short story set in a city built entirely inside an ancient giant's ribcage, featuring a lighthouse keeper who notices the sea is slowly rising and glowing. Explore the theme of what it means to belong to a place. | 52 | 249 |
Build a complete, single-page coffee shop website website using only HTML, CSS, and vanilla JavaScript (no frameworks). The design should be dark-themed and sleek. Include: animated statistics/counters section; dark/light mode toggle with localStorage persistence; responsive mobile-first layout using CSS Grid; FAQ acco... | 83 | 442 |
An ideal gas at 207 K and 3.4 atm occupies 10.8 L. If compressed to 4.8 L at constant temperature, what is the new pressure? Show all work. | 42 | 139 |
Compute the sum of 15438 and 5651. | 12 | 34 |
Walk through a system design for an e-commerce checkout and payment system. Key constraints: idempotent payment charge API and exactly-once guarantee; PCI-DSS compliance: tokenization and avoiding card data storage. Cover: high-level component diagram, failure modes and resiliency, API design. | 58 | 294 |
Describe the trade-offs when designing a system with 1354 nodes and a 3% annual node failure rate: focus on anti-entropy repair, read repair, and hinted handoff for eventual consistency. | 41 | 186 |
An object starts with velocity 13.5 m/s and accelerates at -6.7 m/s² for 19.3 seconds. Find the final velocity. Show all equations used. | 39 | 136 |
Write a 500-word post-apocalyptic short story set in an underwater city in the year 3000, featuring a historian specializing in events that were deliberately erased from the record. Explore the theme of grief and healing. | 44 | 221 |
Calculate the de Broglie wavelength of an electron moving at 1545660.0 m/s. | 21 | 75 |
Find the rank of the matrix A = [[5, -5, -5], [2, 1, -2], [5, 5, -1], [2, -2, -4]]. | 44 | 83 |
Calculate the median of this data set: [93, 56, 4, 24, 43, 100, 60, 99, 65, 11, 100, 3]. | 44 | 88 |
Walk through a system design for a video streaming platform (like YouTube). Key constraints: video ingestion, transcoding pipeline, and storage tiering; adaptive bitrate streaming with DASH/HLS and 8 quality tiers. Cover: failure modes and resiliency, API design, high-level component diagram. | 59 | 293 |
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: animated statistics/counters section; responsive mobile-first layout using CSS Grid; breadcrumb navigation with structured data markup; contact form wit... | 92 | 498 |
Multiply matrices A = [[-2, 5], [4, -5]] and B = [[2, -4, -2], [3, 2, 4]]. Show each element calculation. | 43 | 105 |
Solve the system of equations: 7x - 7y = 15 and x + 7y = 8. Show your method (substitution or elimination). | 35 | 107 |
A 4.6 kg object is pushed with a force of 463.7 N at an angle of 42° on a surface with coefficient of friction 0.33. Find the acceleration. Draw a free-body diagram description. | 48 | 177 |
Write a clean implementation of Rabin-Karp rolling-hash string matching in C from scratch. Show the algorithm on a concrete input, then analyze worst-case and average-case complexity. | 36 | 183 |
Find the rank of the matrix A = [[4, -2, 4, 3], [2, -3, 4, -3], [-2, -1, -5, 2]]. | 44 | 81 |
A 21.1 kg object is pushed with a force of 468.1 N at an angle of 56° on a surface with coefficient of friction 0.01. Find the acceleration. Draw a free-body diagram description. | 48 | 178 |
Write the opening chapter (800-1200 words) of a historical fiction novel set in a desert city built on the back of a colossal tortoise. Begin with an unusual object that will become central to the story. | 44 | 203 |
Build a complete, single-page event ticketing page website using only HTML, CSS, and vanilla JavaScript (no frameworks). The design should be minimalist and modern. Include: hamburger menu for mobile navigation; newsletter signup form with input validation; sticky navigation bar with smooth-scroll anchor links; FAQ acc... | 98 | 535 |
Write a Express.js (Node.js) backend service exposing nested resource endpoints (parent → child relationships) for orders. Include: bulk create endpoint, multi-field sorting, rate limiting per user. Add a Dockerfile and docker-compose.yml. | 47 | 239 |
Write a 1200-word cyberpunk short story set in a deep-sea mining facility that has lost contact with the surface, featuring a chef whose recipes literally bring memories to life. Explore the theme of the cost of immortality. | 47 | 224 |
Convert 1000001110111 (base 2) to base 8. Show the conversion process. | 22 | 70 |
Write SQLite queries for an e-commerce database: find the top 11 customers by total spending in the last 77 days, products never ordered, and monthly revenue trends with YoY comparison. | 38 | 185 |
Build a thread pool with 12 configurable workers and a work-stealing mechanism in Kotlin using the language's native concurrency primitives. Show how you avoid deadlock and livelock, and include a stress test. | 42 | 209 |
A 913.0 kg car accelerates from 24 m/s to 57 m/s. Calculate the work done by the engine. Show your calculations. | 32 | 112 |
Compute the product of 37015 and 8092. | 12 | 38 |
Write a Go implementation of the Memento pattern applied to a user authentication flow. Include a before-and-after showing code without and with the pattern applied. | 30 | 165 |
Calculate the range of this data set: [9, 7, 62, 97, 26, 23]. | 26 | 61 |
A test for a disease has 98% sensitivity and 92% specificity. If 3% 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 |
Solve the inequality: 9x + 3 ≥ -13. Express the solution in interval notation. | 21 | 78 |
Analyze the time and space complexity for all core operations of Floyd-Warshall APSP on an input of size n=45,103,777. Provide a rigorous justification. | 35 | 152 |
Write a 1200-word fairy tale retelling short story set in the last train across a war-torn continent, featuring a former spy, now a middle-school geography teacher, contacted by her long-dead handler. Explore the theme of memory and identity. | 52 | 242 |
Given a 5-GHz processor with 8-stage pipeline, L1 hit=5 cycles, L2 hit=15 cycles, L3 hit=31 cycles, DRAM=147 cycles, and miss rates L1=15%, L2=20%, L3=9%: compute the average memory access time (AMAT), effective CPI (assuming 1.6 IPC in a stall-free pipeline), and identify whether this workload is memory-bound or compu... | 101 | 354 |
A weak acid with Ka = 7.49e-04 has a concentration of 0.37 M. Calculate the pH. Show your calculation step by step. | 35 | 115 |
A 54.2 kg object is pushed with a force of 256.8 N at an angle of 48° on a surface with coefficient of friction 0.38. Find the acceleration. Draw a free-body diagram description. | 48 | 178 |
Build a complete, single-page university department page website using only HTML, CSS, and vanilla JavaScript (no frameworks). The design should be clean and typographic. Include: hamburger menu for mobile navigation; a floating 'back to top' button that appears after scrolling; FAQ accordion with smooth expand/collaps... | 104 | 574 |
Find the complete prime factorization of 37180. | 11 | 47 |
Given the reaction: Fe₂O₃ + C → Fe + CO₂. balance and find how many grams of iron can be produced from 472.5 g of Fe₂O₃. Show all stoichiometric calculations. | 48 | 158 |
Compute the sum of 26815 and 7406. | 12 | 34 |
Given a 3-GHz processor with 14-stage pipeline, L1 hit=4 cycles, L2 hit=17 cycles, L3 hit=80 cycles, DRAM=282 cycles, and miss rates L1=30%, L2=7%, L3=7%: compute the average memory access time (AMAT), effective CPI (assuming 1.6 IPC in a stall-free pipeline), and identify whether this workload is memory-bound or compu... | 101 | 354 |
Refactor the following Python code smell: a Python class with 1245 lines doing data fetching, transformation, caching, validation, and UI rendering — a clear God Object. Apply flatten nesting using guard clauses, early returns, and extracted helper functions. Show a clear before-and-after and explain each improvement a... | 64 | 335 |
A client at 124 ms RTT must transfer a 301 MB file. Calculate and compare the download time over HTTP/1.1 (no pipelining, 4 parallel connections), HTTP/2 (single multiplexed connection), and HTTP/3 (QUIC). Account for TCP slow-start with an initial window of 4 segments (each 1439 bytes) and a 1.6% packet-loss rate. | 86 | 316 |
Solve the inequality: 3x - 20 ≥ -15. Express the solution in interval notation. | 21 | 79 |
Solve |6x + 14| = 1. List all solutions. | 16 | 40 |
Write a C implementation of the Strategy pattern applied to a data-processing pipeline. Show how it interacts with at least one other pattern. | 26 | 142 |
Given a 5-GHz processor with 15-stage pipeline, L1 hit=6 cycles, L2 hit=26 cycles, L3 hit=60 cycles, DRAM=165 cycles, and miss rates L1=20%, L2=11%, L3=10%: compute the average memory access time (AMAT), effective CPI (assuming 0.8 IPC in a stall-free pipeline), and identify whether this workload is memory-bound or com... | 101 | 356 |
Create a rate-limited HTTP load tester that fires 314 requests/sec and reports latency percentiles as a Python CLI utility. Support --dry-run and --verbose flags. Include argument validation and helpful error messages. | 42 | 218 |
Solve the inequality: x + 10 > 19. Express the solution in interval notation. | 19 | 77 |
Two charges of 7.0 µC and 7.9 µC are separated by 0.83 m. Calculate the electric force between them. Show your calculations. | 36 | 124 |
Calculate the efficiency of a Carnot engine operating between 312 K and 293 K. Show all work. | 22 | 93 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.