prompt stringlengths 19 668 | tokens int64 8 149 | characters int64 19 668 |
|---|---|---|
In Java, implement a DP solution for the longest common subsequence of two strings (return length and the subsequence itself). Reconstruct the optimal solution (not just its value) and trace through the backtracking. | 43 | 216 |
Given points A(-4, 15) and B(-18, -18), find the equation of the line passing through these two points. | 29 | 103 |
Compute the difference of 21320 and 5882. | 12 | 41 |
Find the complete prime factorization of 1908. | 11 | 46 |
Calculate the volume of a rectangular prism with length 17.74, width 12.88, and height 13.82. | 27 | 93 |
Write a 2000-word noir short story set in a deep space anomaly where castaways from different ships have formed a society, featuring an AI developing emotions it wasn't supposed to have. Explore the theme of finding home in unexpected places. | 47 | 242 |
Calculate the area and circumference of a circle with radius 45.05. | 15 | 67 |
Analyze the amortized time complexity using the aggregate analysis method of Kosaraju's SCC on an input of size n=30,127,244. Provide a rigorous justification. | 35 | 159 |
Find the transpose of the matrix A = [[1, 0, -5], [-4, -2, -4]]. | 26 | 64 |
Solve using dynamic programming in Swift: the number of ways to climb 23 stairs taking up to 3 steps at a time. Walk through the subproblem decomposition before writing code. | 36 | 174 |
Write a Node.js script that calls a paginated REST API, collects all results across 12 pages, and writes a structured JSON and a flat CSV report. Handle all common failure modes gracefully and log a summary on exit. | 45 | 215 |
Calculate the area of a circle with radius 37.23. | 13 | 49 |
In a double-slit experiment with slit separation 0.9 mm and screen distance 3.4 m, find the fringe spacing for light of wavelength 637 nm. Show your work. | 39 | 154 |
Multiply matrices A = [[4, -3], [-5, 2]] and B = [[2, 2, -1], [-5, -2, 3]]. Show each element calculation. | 42 | 106 |
Implement a production-ready REST API for managing inventory items with Koa (Node.js). Include: API key authentication, JWT authentication, cursor-based pagination. Add a Dockerfile and docker-compose.yml. | 39 | 205 |
Write a 1000-word dark fantasy short story set in a war-ravaged capital city being rebuilt, with ghosts walking among the living, featuring a forensic accountant who finds a financial trail leading to their own past. Explore the theme of loyalty to an idea vs loyalty to a person. | 58 | 280 |
In C, implement a DP solution for the maximum sum path through a triangle of 4 rows. Reconstruct the optimal solution (not just its value) and trace through the backtracking. | 38 | 174 |
Calculate the area and circumference of a circle with radius 2.99. | 15 | 66 |
In a class of 38 students, 7 play soccer and 5 play basketball, with 4 playing both. What is the probability a randomly chosen student plays at least one sport? Show your calculation. | 42 | 183 |
Write a 2000-word horror short story set in a monastery on a mountain that exists between dimensions, featuring a tech billionaire who woke up unable to be seen by cameras or screens. Explore the theme of the beauty of impermanence. | 48 | 232 |
Build a fully playable Space Invaders clone game using HTML5 Canvas and pure JavaScript (no external libraries). Implement the following mechanics: lives counter and score displayed on the HUD; destructible shields between player and enemies; bonus UFO crossing the top of the screen periodically; player ship with left/right movement and shooting (spacebar); enemy speed increasing as fewer aliens remain; enemy projectiles fired at random intervals. Use requestAnimationFrame for smooth rendering, organize code into separate concerns (game state, rendering, input handling), and add inline comments. | 109 | 602 |
A mixture contains 20 liters of a 14% solution. How many liters of a 81% solution must be added to get a 44% mixture? Show your complete solution. | 38 | 146 |
Build a fully playable Tetris game using HTML5 Canvas and pure JavaScript (no external libraries). Implement the following mechanics: left/right movement, soft drop, and hard drop controls; ghost piece showing where the current piece will land; level and speed increasing every 10 cleared lines; pause/resume functionality; game-over detection when pieces stack above the board; piece rotation with wall-kick correction. Use requestAnimationFrame for smooth rendering, organize code into separate concerns (game state, rendering, input handling), and add inline comments. | 107 | 571 |
Solve for x: 15x - 38 = 10. | 14 | 27 |
Build a read-heavy endpoints (list + detail) with write support REST API for categories using Spring Boot (Java). Include: request body validation, search / full-text query, bulk create endpoint, request ID tracing. Add middleware for request logging and correlation IDs. | 52 | 271 |
Code a thread pool with 5 configurable workers and a work-stealing mechanism in Python from scratch. Discuss the concurrency primitives you chose and why. Include a test that verifies thread safety. | 37 | 198 |
Build a max-heap with insert, extract-max, and heapify operations in Swift without using any standard library collection types. Add an iterator so the structure can be used in a for-each loop. | 41 | 192 |
Solve in C: Given coins of denominations [2, 25, 30, 35, 37, 39], find the minimum number of coins needed to make change for 186. Provide an optimal solution with explanation. | 47 | 175 |
Using NestJS (TypeScript), build a REST API that handles paginated list endpoint with aggregation counts for webhooks. Include: field-level partial update (PATCH), structured logging, event publishing on write, database transactions. Provide example curl commands for each endpoint. | 52 | 282 |
Walk through a system design for a metrics collection and alerting platform (like Prometheus + Grafana). Key constraints: time-series compression with delta-of-delta encoding and Gorilla compression; alerting via threshold rules and anomaly detection, routing to PagerDuty. Cover: high-level component diagram, data model / schema, API design, functional and non-functional requirements, database choice and justification. | 77 | 422 |
Write a 1200-word noir short story set in an abandoned amusement park that comes alive at midnight, featuring a librarian who finds a book that rewrites itself daily. Explore the theme of how language shapes the way we experience the world. | 48 | 240 |
Write a 750-word fairy tale retelling short story set in a forgotten temple reclaimed by the jungle, featuring a street artist whose murals predict disasters 24 hours in advance. Explore the theme of how language shapes the way we experience the world. | 49 | 252 |
Calculate the area and circumference of a circle with radius 71.0. | 15 | 66 |
A satellite orbits Earth at an altitude of 37563 km. Calculate its orbital velocity and period. (Earth mass = 5.97 × 10²⁴ kg, Earth radius = 6371 km) | 45 | 149 |
Solve for x: -15x + 37 = 3. | 14 | 27 |
Analyze the time complexity and compare it to the most common alternative for the same task of selection sort on an input of size n=17,741,105. Provide a rigorous justification. | 37 | 177 |
Code Kosaraju algorithm for strongly connected components in JavaScript, building it without using any library sorting or graph utilities. Compare its performance against a naive baseline with a benchmark on inputs of size 10, 1000, and 100000. | 50 | 244 |
Write the opening chapter (800-1200 words) of a space opera novel set in an alternate 1920s where prohibition banned magic, not alcohol. Start with a line of mysterious dialogue whose context is unclear. | 44 | 203 |
Is 29556 a prime number? Prove your answer. | 13 | 43 |
Divide the polynomial P(x) = 5x^3 + 4x + 1 by (x + 3) using synthetic division. | 30 | 79 |
Analyze the amortized time complexity using the potential method of bubble sort on an input of size n=1,331,976. Provide a rigorous justification. | 31 | 146 |
Use dynamic programming in JavaScript to solve the unbounded knapsack problem with 7 item types and capacity 28. Include bottom-up tabulation and top-down memoization versions. | 36 | 176 |
A 58.6 kg object is pushed with a force of 397.5 N at an angle of 57° on a surface with coefficient of friction 0.63. Find the acceleration. Draw a free-body diagram description. | 48 | 178 |
Analyze the best-case, average-case, and worst-case time complexity with a justification for each scenario of binary search (iterative) on an input of size n=47,017,627. Provide a rigorous justification. | 44 | 203 |
Build a complete, single-page fitness trainer website website using only HTML, CSS, and vanilla JavaScript (no frameworks). The design should be bold and colorful. Include: Google Fonts and Font Awesome icons integration; scroll-triggered fade-in animations using IntersectionObserver; accessible ARIA labels and semantic HTML5 landmark elements; team/about section with profile cards; CSS transitions and hover effects on interactive elements; hamburger menu for mobile navigation. Use semantic HTML5, ensure full mobile responsiveness, and write clean, commented code. | 102 | 570 |
A satellite orbits Earth at an altitude of 1665 km. Calculate its orbital velocity and period. (Earth mass = 5.97 × 10²⁴ kg, Earth radius = 6371 km) | 45 | 148 |
Walk through a system design for a push notification delivery system. Key constraints: priority queues for transactional vs marketing traffic; at-least-once delivery with retry exponential backoff and deduplication token; fan-out to APNs, FCM, email, and SMS at 8303K sends/second. Cover: functional and non-functional requirements, database choice and justification, API design, data model / schema. | 83 | 400 |
Demonstrate the Strategy design pattern in C with a practical a payment processing module example. Write unit tests that verify the pattern behaves correctly. | 28 | 158 |
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 11 concurrent users. Cover: functional and non-functional requirements, data model / schema, high-level component diagram. | 66 | 378 |
Analyze the space complexity and discuss memory layout and cache performance implications of interpolation search on an input of size n=14,384,113. Provide a rigorous justification. | 33 | 181 |
Write a 1000-word solarpunk short story set in an abandoned amusement park that comes alive at midnight, featuring a translator hired to decipher an alien treaty. Explore the theme of finding home in unexpected places. | 43 | 218 |
In C#, solve this coding challenge: Given a binary tree, check if it is a valid binary search tree. Show a brute-force approach first, then optimize it. | 34 | 152 |
Write a 750-word space opera short story set in a bustling medieval market during a plague, featuring a deep-sea diver who resurfaces to find 20 years have passed in 3 hours. Explore the theme of the nature of consciousness. | 49 | 224 |
Design and implement a REST API for blog articles in NestJS (TypeScript), covering read-heavy endpoints (list + detail) with write support. Include: rate limiting per user, JWT authentication, request body validation. Show the database schema and migration files. | 51 | 263 |
Multiply matrices A = [[-1, 3], [2, 0], [0, 2]] and B = [[5, 1, 1], [1, 3, 0]]. Show each element calculation. | 49 | 110 |
Write a 1200-word literary fiction short story set in an underwater city in the year 3000, featuring a grief counselor haunted by the voices of those whose grief she couldn't ease. Explore the theme of loyalty to an idea vs loyalty to a person. | 52 | 244 |
Compute the sum of 6466 and 1653. | 12 | 33 |
Write a 500-word fantasy short story set in a small Appalachian town hiding a dark secret, featuring a cartographer mapping territories that shift and change. Explore the theme of freedom versus security. | 38 | 204 |
Calculate the area and circumference of a circle with radius 8.99. | 15 | 66 |
A spring with constant k = 227 N/m is compressed 0.25 m. Calculate the elastic potential energy stored. Show your calculations. | 29 | 127 |
Describe the trade-offs when designing a system with 6883 nodes and a 0.1% annual node failure rate: focus on anti-entropy repair, read repair, and hinted handoff for eventual consistency. | 43 | 188 |
Write a 1000-word space opera short story set in a neon-drenched megacity run by AI corporations, featuring a deep-sea diver who resurfaces to find 20 years have passed in 3 hours. Explore the theme of the ethics of AI. | 54 | 219 |
Calculate the area of a circle with radius 36.11. | 13 | 49 |
Analyze the time and space complexity for all core operations of bidirectional BFS on an input of size n=21,402,667. Provide a rigorous justification. | 32 | 150 |
Analyze the amortized time complexity using the potential method of BFS (breadth-first search) on an input of size n=17,839,728. Provide a rigorous justification. | 36 | 162 |
Build a complete, single-page restaurant landing page website using only HTML, CSS, and vanilla JavaScript (no frameworks). The design should be dark-themed and sleek. Include: accessible ARIA labels and semantic HTML5 landmark elements; breadcrumb navigation with structured data markup; CSS transitions and hover effects on interactive elements; footer with social media icons and sitemap links. Use semantic HTML5, ensure full mobile responsiveness, and write clean, commented code. | 88 | 485 |
Given a 2-GHz processor with 20-stage pipeline, L1 hit=5 cycles, L2 hit=12 cycles, L3 hit=76 cycles, DRAM=192 cycles, and miss rates L1=29%, L2=13%, L3=12%: 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 compute-bound using the roofline model. | 101 | 356 |
Build a fully playable JavaScript Platformer game using HTML5 Canvas and pure JavaScript (no external libraries). Implement the following mechanics: collectible coins or gems incrementing the score; gravity simulation and platform collision detection; sprite-based player with left/right run and jump mechanics; multi-layer parallax scrolling background; patrolling enemies that the player must avoid or defeat; level-complete trigger when reaching an end flag or zone. Use requestAnimationFrame for smooth rendering, organize code into separate concerns (game state, rendering, input handling), and add inline comments. | 111 | 620 |
Write a 2000-word romance short story set in a marketplace at the intersection of three warring time periods, featuring a con artist who accidentally impersonated someone who doesn't exist. Explore the theme of the ethics of AI. | 45 | 228 |
A wire of length 1.7 m carrying 7.0 A is in a magnetic field of 0.56 T. Calculate the force on the wire. Show your calculations. | 38 | 128 |
Design and implement a REST API for shipments in FastAPI (Python), covering nested resource endpoints (parent → child relationships). Include: request body validation, bulk delete endpoint, query-param validation. Include unit tests for each handler. | 45 | 250 |
An object starts with velocity 45.8 m/s and accelerates at -3.1 m/s² for 18.1 seconds. Find the final velocity. Show all equations used. | 39 | 136 |
Build a complete, single-page fitness trainer website website using only HTML, CSS, and vanilla JavaScript (no frameworks). The design should be retro-inspired. Include: newsletter signup form with input validation; responsive mobile-first layout using CSS Grid; footer with social media icons and sitemap links. Use semantic HTML5, ensure full mobile responsiveness, and write clean, commented code. | 74 | 400 |
Compute (7752 * 391) mod 84. Show each step. | 16 | 44 |
Analyze the space complexity and discuss memory layout and cache performance implications of Boyer-Moore majority vote on an input of size n=11,938,762. Provide a rigorous justification. | 38 | 186 |
Analyze the time and space complexity for all core operations of Dinic's max flow on an input of size n=37,603,444. Provide a rigorous justification. | 34 | 149 |
Determine whether 749732 is divisible by 4. Explain the divisibility rule you used. | 19 | 83 |
Write a 1200-word noir short story set in an abandoned amusement park that comes alive at midnight, featuring a deep-sea diver who resurfaces to find 20 years have passed in 3 hours. Explore the theme of isolation and connection. | 50 | 229 |
Solve using dynamic programming in C++: minimum edit distance (Levenshtein) between strings of length ~20, with path reconstruction. Analyze time and space complexity, then show a space-optimized version. | 42 | 204 |
Compute (5353 * 360) mod 29. Show each step. | 16 | 44 |
A satellite orbits Earth at an altitude of 6791 km. Calculate its orbital velocity and period. (Earth mass = 5.97 × 10²⁴ kg, Earth radius = 6371 km) | 45 | 148 |
An object starts with velocity 39.1 m/s and accelerates at 1.1 m/s² for 5.4 seconds. Find the final velocity. Show all equations used. | 39 | 134 |
Build a write-optimized endpoints with idempotency keys REST API for wishlists using Hono (TypeScript). Include: request body validation, cursor-based pagination, search / full-text query. Include an OpenAPI spec for the endpoints. | 48 | 231 |
An object starts with velocity 49.8 m/s and accelerates at 8.6 m/s² for 16.7 seconds. Find the displacement. Show all equations used. | 38 | 133 |
Multiply matrices A = [[2, -5, 0], [1, -5, 5]] and B = [[2, -4], [-1, 3], [2, -5]]. Show each element calculation. | 48 | 114 |
Analyze the time and space complexity for all core operations of topological sort (Kahn's algorithm) on an input of size n=43,869,363. Provide a rigorous justification. | 38 | 168 |
Build a complete, single-page music artist website 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; CSS card grid for showcasing items or services; accessible ARIA labels and semantic HTML5 landmark elements; hero section with a full-screen background image and CTA button; Google Fonts and Font Awesome icons integration. Use semantic HTML5, ensure full mobile responsiveness, and write clean, commented code. | 99 | 532 |
Build a complete, single-page podcast homepage website using only HTML, CSS, and vanilla JavaScript (no frameworks). The design should be dark-themed and sleek. Include: a floating 'back to top' button that appears after scrolling; FAQ accordion with smooth expand/collapse; scroll-triggered fade-in animations using IntersectionObserver; breadcrumb navigation with structured data markup; image gallery with CSS lightbox popup. Use semantic HTML5, ensure full mobile responsiveness, and write clean, commented code. | 97 | 516 |
Find the area of a triangle with base 9.57 and height 6.23. | 19 | 59 |
Build a complete, single-page real estate listing page website using only HTML, CSS, and vanilla JavaScript (no frameworks). The design should be glassmorphism-styled. Include: CSS card grid for showcasing items or services; responsive mobile-first layout using CSS Grid; Google Fonts and Font Awesome icons integration; team/about section with profile cards; hero section with a full-screen background image and CTA button; FAQ accordion with smooth expand/collapse. Use semantic HTML5, ensure full mobile responsiveness, and write clean, commented code. | 106 | 555 |
Build a fully playable Tower Defense game game using HTML5 Canvas and pure JavaScript (no external libraries). Implement the following mechanics: upgrade selected tower by spending coins; game-over and wave-cleared notification screens; tower range visualization circle on hover/select; at least three tower types with different range, damage, and fire rate; predefined enemy path drawn as a curve on a grid canvas; click-to-place towers on valid grid cells within a coin budget. Use requestAnimationFrame for smooth rendering, organize code into separate concerns (game state, rendering, input handling), and add inline comments. | 117 | 630 |
Build a fully playable Tower Defense game game using HTML5 Canvas and pure JavaScript (no external libraries). Implement the following mechanics: at least three tower types with different range, damage, and fire rate; upgrade selected tower by spending coins; wave-based enemy spawning with increasing HP and count per wave; predefined enemy path drawn as a curve on a grid canvas; player life counter decremented when an enemy reaches the base; click-to-place towers on valid grid cells within a coin budget. Use requestAnimationFrame for smooth rendering, organize code into separate concerns (game state, rendering, input handling), and add inline comments. | 124 | 660 |
Create a NestJS (TypeScript) REST service for messages with nested resource endpoints (parent → child relationships). Include: query-param validation, field-level partial update (PATCH), response caching. Add a Dockerfile and docker-compose.yml. | 47 | 245 |
Walk through a system design for a ride-sharing dispatch service (like Uber / Lyft). Key constraints: geospatial indexing with geohash or S2 cells at 3M active drivers; driver-passenger matching within 6 seconds; ETA computation on a live traffic graph updated every 103 seconds. Cover: failure modes and resiliency, API design, high-level component diagram, functional and non-functional requirements. | 82 | 402 |
Draw the Lewis structure of NH₃, determine its molecular geometry, and predict the bond angles. | 20 | 95 |
Explain Lamport logical clocks: the clock condition, the total order, and limitations without vector clocks for a distributed system handling 48K transactions/second. | 31 | 166 |
Given points A(-8, -14) and B(1, 8), find the slope of the line passing through these two points. | 29 | 97 |
Walk through a system design for a large-scale web crawler. Key constraints: content change detection using checksums and re-crawl scheduling; distributed URL deduplication via Bloom filter at 3B URLs; politeness (robots.txt, crawl-delay) and frontier priority queue. Cover: API design, high-level component diagram, failure modes and resiliency, functional and non-functional requirements. | 77 | 390 |
Build a fully playable Connect Four game using HTML/CSS/JavaScript and pure JavaScript (no external libraries). Implement the following mechanics: column-hover highlight showing where a disc will land; win highlight showing the winning four discs; optional AI opponent using minimax with alpha-beta pruning; win detection for horizontal, vertical, and diagonal four-in-a-row; 7×6 grid rendered with CSS for two-player disc dropping. Use requestAnimationFrame for smooth rendering, organize code into separate concerns (game state, rendering, input handling), and add inline comments. | 112 | 583 |
Implement a Python backpressure-aware async pipeline using asyncio.Queue and demonstrate processing 14,041 concurrent jobs. | 21 | 123 |
End of preview. Expand
in Data Studio
Total tokens: 44.5m
Total characters: 200m
- Downloads last month
- 14