Query
stringlengths
2
286
Type
stringclasses
19 values
How do I solve the knapsack problem with dynamic programming?
Coding
Write a backtracking function to solve N-Queens for n=4.
Coding
How do I generate all subsets of a set?
Coding
How do I implement quicksort and explain the pivot choice?
Coding
What is a stable sort and which common sorts are stable?
Coding
How do I count inversions in an array?
Coding
Write a function that merges overlapping intervals.
Coding
How do I insert an interval into a list of non-overlapping intervals?
Coding
How do I find the meeting rooms required from a list of time ranges?
Coding
Write code to validate a binary search tree.
Coding
How do I find the lowest common ancestor in a BST?
Coding
How do I print a binary tree level by level?
Coding
Write a function that constructs a tree from preorder and inorder.
Coding
How do I serialize a graph to an adjacency list?
Coding
How do I detect a cycle in a directed graph?
Coding
Write a topological sort for a course-prereq problem.
Coding
How do I find bridges in an undirected graph?
Coding
How do I implement Union-Find with path compression?
Coding
Write a Kruskal or Prim sketch for a tiny MST.
Coding
How do I compute a histogram of character counts?
Coding
How do I check if a number is a power of two without a loop?
Coding
Write bit-twiddling code to count set bits.
Coding
How do I reverse the bits of an integer?
Coding
How do I add two numbers represented as linked lists?
Coding
Write a function that multiplies two big integers stored as strings.
Coding
How do I implement a simple calculator that handles + - * / and parentheses?
Coding
How do I sandbox user-submitted code safely? High-level only.
Coding
What are SOLID principles with one-line examples each?
Coding
How do I refactor a long function into smaller ones?
Coding
How do I write clean names and comments that help a teammate?
Coding
What is REST vs GraphQL at a beginner level?
Coding
How do I design a URL shortener's data model?
Coding
How do I design a rate limiter?
Coding
How do I cache hot queries with Redis conceptually?
Coding
What is eventual consistency?
Coding
How do I choose between SQL and NoSQL for a school club app?
Coding
Write a Python script that scrapes a static HTML table (politely).
Coding
How do I respect robots.txt when writing a crawler?
Coding
How do I encode URL query parameters correctly?
Coding
Write JavaScript that copies text to the clipboard.
Coding
How do I lazy-load images on a webpage?
Coding
How do I make an accessible button that works with a keyboard?
Coding
What is ARIA and when do I need it?
Coding
How do I test a webpage's contrast for readability?
Coding
Write a regex that matches a U.S. ZIP code.
Coding
How do I convert camelCase to snake_case in Python?
Coding
How do I pretty-print a JSON file from the command line?
Coding
Write a bash one-liner that counts lines in all .py files.
Coding
How do I use chmod to make a script executable?
Coding
How do I find which process is using a port?
Coding
How do I set up SSH keys for GitHub?
Coding
What does CORS mean and how do I fix a CORS error in development?
Coding
How do I use fetch with credentials?
Coding
Write an Express route that returns JSON.
Coding
How do I add middleware for logging in Express?
Coding
How do I upload a file in a web form and save it safely?
Coding
How do I resize an image in Python with Pillow?
Coding
Write a function that generates a random secure password.
Coding
How do I use secrets.compare_digest to avoid timing attacks?
Coding
How do I rotate application logs so they do not fill the disk?
Coding
What is a stack trace and how do I read one?
Coding
How do I use a debugger breakpoint in VS Code for Python?
Coding
Write a small Makefile with a test target.
Coding
How do I pin dependency versions and why?
Coding
How do I explain recursion to a beginner using boxes inside boxes?
Coding
Write a function that finds the intersection of two sorted arrays.
Coding
How do I implement a circular buffer?
Coding
What is the difference between compiled and interpreted languages?
Coding
How to make a battery for a science fair using safe household materials?
Other
Write a short story about a mysterious door in the school library.
Other
Create a poem about autumn leaving the playground.
Other
Write a dialogue between two classmates planning a science project.
Other
Generate a fantasy adventure scene with a friendly dragon who loves riddles.
Other
Write a haiku about a rainstorm on the gym roof.
Other
Create a character backstory for a video-game hero who is a middle-school inventor.
Other
Write a mystery story set in a school with clues students can solve.
Other
Generate a science-fiction scene on a research base on Mars that is school-appropriate.
Other
Write a letter of apology to a teammate after a missed practice.
Other
Create song lyrics about finishing a hard homework assignment.
Other
Write flash fiction under 100 words about a lost library book that comes back.
Other
Write a persuasive essay about why schools should plant more trees.
Other
Create a speech for a student-council campaign about better recycling.
Other
Write a blog post with five productivity tips for homework.
Other
Write a thank-you note to a teacher or mentor.
Other
Create a detailed description of a fantasy world that runs on windmills and libraries.
Other
Write a movie review of a family-friendly film you choose.
Other
Generate a job-interview style answer to 'tell me about a time you solved a problem' for a student.
Other
Write a travel guide paragraph for a class trip to a natural history museum.
Other
Create a character development arc for a shy student who joins the debate team.
Other
Write a podcast-episode outline about interesting technology for kids.
Other
Write a motivational speech for a middle-school graduation.
Other
Create a detailed outline for a research paper on coral reefs.
Other
Write a multi-generational family story outline about a compass passed down through three centuries.
Other
Generate a hard sci-fi school newsletter about a failed model rocket test (no injuries).
Other
Write a lyrical paragraph capturing a neon-lit indoor market during a rainstorm.
Other
Draft a courtroom-style scene where students debate whether a robot may enter the science fair.
Other
Create a world-building guide for an underground city lit by glowing fungi.
Other
Write a satirical school newsletter announcing mandatory 'mindful pencil sharpening' breaks.
Other
Generate a story made of diary entries and radio logs from a missing Arctic class expedition (everyone is found safe).
Other
Draft a Platonic-style dialogue on whether a perfectly simulated chess player has 'feelings'.
Other