Design Class Scheduling App
Design a class scheduling app for your university in 2 weeks.
Most decomposition prompts make you ask for the timeline. This one hands it to you, which makes it easy to assume you know more than you do.
Try this yourself before you open our solution. Give yourself about 45 minutes and talk out loud as you would with an interviewer.
Each step below follows our decomposition framework and works like the interview itself. Write down the questions you'd ask first. Then open the clarifying questions one at a time, each with the interviewer's answer, and stop once you're unstuck.
This question ends with the customer role-play variant. In step 6, you'll explain your solution to the interviewer as if they were the customer.
1. Clarify the constraints
Estimated time: 1-2 min
The prompt states a stakeholder and a timeline, at least on the surface. Check whether each one is as complete as it looks, and find out what resources you have.
2. Understand the stakeholder
Estimated time: 5-8 min
Find out what makes building a schedule painful today. Look for a specific moment where things go wrong.
3. Brainstorm the solution
Estimated time: 5 min
Come up with two potential solutions and choose one.
4. Scope the MVP
Estimated time: 5 min
With a launch date that can't move, decide what has to be in students' hands by then. Narrate the coordination, integration, and rollout costs as you go.
5. Design the high-level system
Estimated time: 5 min
State your requirements, then sketch the components that satisfy them. Ask for any numbers you need before you estimate.
6. Present back to the customer
Estimated time: 10 min
Present your solution to the person paying for it. Lead with the problem it solves for them, not just for their users.
Follow-up questions
Have answers ready for these before you open the solution.
Here's how we'd work through it. Each step covers what to ask, what the answers tell you, how they shape the design, and what a strong answer looks like. The interviewer's full answers are in the "Ask the interviewer" boxes on the question tab.
1. Clarify the constraints
This prompt gives you more than most, but each constraint it states is still incomplete:
Three questions fill the gaps: what "scheduling" means here, how many students there are and what data the app can use, and what happens at the end of the two weeks. The answers give you:
- Stakeholder: students planning their schedules, with the registrar's office as the customer
- Available resources: a nightly catalog export with sections, times, and seat counts, for about 20,000 students, with no write access to registration
- Timeline: two weeks, ending when registration opens
The timeline question does the most work. Asking what the two weeks end in turns "build a prototype" into "have students using it on a fixed date," which changes every scoping decision that follows.
2. Understand the stakeholder
Four questions find the moment things break: how students build schedules today, what goes wrong on registration day, when they find out about clashes, and who calls the help desk. Here's what the answers tell you:
That reframes the pain point from "Students need a way to schedule classes" to "Students need a backup plan ready for every section that might fill, so one full class on registration day doesn't unravel their whole schedule."
Other questions worth asking include whether prerequisites or degree requirements trip students up, and whether students plan with friends. Both point to tempting features that probably aren't MVP.
3. Brainstorm the solution
Two options come to mind:
- A schedule planner. Students pick the courses they want and block out times they're unavailable, and the app generates every conflict-free combination of sections, ranked by their preferences. They save a first choice plus a backup for each section likely to fill.
- An auto-enrollment bot that registers students the moment registration opens, and tries alternatives when a section fills.
Option 1 works with what you have. To make its backups targeted, ask whether there are historical seat counts. There are: the registrar keeps every nightly export from last year. So instead of asking students to plan a backup for all five courses, the app only prompts for the sections that filled fast last time.
4. Scope the MVP
Two questions decide what could make you miss the date: who signs off, and whether students can log in with university accounts. The registrar's office signs off quickly. Single sign-on approval takes three to four weeks, which is longer than you have. Narrate scoping around that:
"Coordination: the registrar's office signs off, and that's quick. The risk is logins. University sign-on takes longer than two weeks to approve, so the MVP skips accounts: plans live in the student's browser and can be shared as a link. Integration is a nightly file, so it's a simple import. Rollout is a website rather than a native app, which means I can fix bugs right up to and during registration day."
That leaves this MVP 1.0:
- Search the catalog and choose courses
- Generate conflict-free schedules that respect blocked-out times
- Flag sections likely to fill, based on last year's data, and pick a backup for each
- Produce the list of section numbers in the order to enter them on registration day
Out of scope: saved accounts, prerequisite and degree requirement checks, and planning with friends.
5. Design the high-level system
State the requirements:
- Functional: given a set of courses and blocked-out times, generate and rank every conflict-free schedule.
- Functional: for each section likely to fill, suggest a backup that keeps the rest of the schedule intact.
- Non-functional: the app stays fast in the hour before registration opens, when the most students use it.
Two questions give you the numbers: a typical student takes five courses, popular courses have up to ten sections, and the rush comes in the hour before registration opens. Two estimates matter here, and neither is about storage.
First, computation. "A student taking five courses with up to ten sections each has up to 100,000 possible combinations. Most of them clash. A search that drops a combination as soon as two sections overlap only explores a small fraction of that, so it finishes in well under a second, even on a phone. That means it can run in the student's browser instead of on a server."
Then, load. "If half of 20,000 students open the app in that hour, that's 10,000 people. But if the catalog is a static file and schedules are computed in the browser, the server's only job is handing out that file. A content delivery network handles that easily."
The estimates removed the backend almost entirely:
Narrating it: "The planner in the browser satisfies both functional requirements. Serving the catalog as a static file from a CDN satisfies the non-functional one, because the busiest hour costs the server almost nothing."
6. Present back to the customer
The interviewer now plays the university registrar. Lead with the moment you identified in step 2, since it's both their problem and their students':
"On registration day, when a student's first-choice section is full, they won't have to rebuild their schedule on the spot. They'll already have a backup that fits, picked a week earlier. That should cut a big share of your help desk calls.
We made two trade-offs to launch on time. Students don't log in yet, because university sign-on approval takes longer than two weeks. And the app doesn't register anyone. It hands students the exact list to enter, so your registration system stays untouched.
To launch, I need sign-off from your office this week and a way to announce it to students, like the registration reminder email."
Watch for jargon as you go. If you'd say "a client-side solver with a CDN-hosted catalog" to an engineer, tell the registrar "it runs on each student's own device, so it won't slow down when everyone uses it at once."
Handling follow-up questions
What would you build for next semester?
Here the order is set by dependencies more than impact:
- University sign-on and saved plans. It's only blocked on approval, and the next item depends on it.
- A demand report for the registrar. Blocked on saved plans, but it's the highest-impact item for the customer.
- Prerequisite and degree requirement checks. Blocked on access to degree audit data, which is a separate negotiation.
The registrar now wants the app to enroll students directly. What changes?
The app would need write access through the vendor's API, and it would become part of a high-stakes system rather than a planning tool beside it. That adds a server-side component: an enrollment queue that submits requests to the vendor system at a controlled rate, in the order students joined, so the app doesn't overload registration or reward whoever's script runs fastest. It also adds a new non-functional requirement, since every enrollment the app submits needs to be correct and recorded. The planner itself stays unchanged.