Coding interview questions that predict real work
Practical coding interview questions for hiring software engineers from SDE 1 to senior, with a fair format and a scoring rubric.
JobTals Editorial Team
3 min read · 20 Nov 2026
›In this article
Most coding interviews test whether someone has practised puzzles lately. That is a different question from whether they can build and maintain software on your team. Here is how to ask coding questions that predict the second.
Pick the format
| Format | Best for | Time |
|---|---|---|
| Live practical coding | Most product roles | 60 min |
| A short algorithm problem | A baseline on problem solving | 30 to 45 min |
| Take-home | Senior roles, and people who freeze on live coding | 2 to 3 hours |
| Code review exercise | Senior and lead roles | 45 min |
| Debugging exercise | Backend and SRE roles | 45 min |
Practical questions by role
Backend:
- Build a REST endpoint that paginates and filters a list of orders, and talk through the edge cases.
- Write a function that retries a failing API call with exponential backoff and a maximum number of attempts.
- Implement an in-memory rate limiter (token bucket).
- Given a log file, return the ten most frequent error messages from the last hour.
Frontend: 5. Build a search box with debounced API calls and keyboard navigation. 6. Build an infinite scroll list that does not re-render every item. 7. Fix a component with a stale closure bug.
Full stack: 8. Build a small to-do app with an API and persistence. Judge the structure, not the styling.
Data: 9. Write SQL to find users who ordered in three consecutive months. 10. Clean and deduplicate a CSV of customers with messy phone numbers.
Fair algorithm problems
If you want one baseline problem, choose something medium, explain it clearly, and accept any correct approach. Merging overlapping intervals, finding the first non-repeating character, grouping anagrams, detecting a cycle in a linked list, or building an LRU cache all work.
What to watch for
Good candidates ask about the problem before writing code. They start with something simple and improve it. Their names are clear and their functions small. They test their own code with examples and edge cases, talk through the trade-offs, and use a hint without getting stuck on it.
Scoring
| Area | 1 | 3 | 5 |
|---|---|---|---|
| Problem solving | Stuck without help | Solves it with hints | Solves it cleanly and explains why |
| Code quality | Hard to read | Clear | Clean and well structured |
| Testing | None | Some cases | Edge cases without prompting |
| Communication | Silent | Explains when asked | Thinks aloud and collaborates |
Keeping it fair
Use the same questions and rubric for everyone at a level. Let people code in their own language. Tell them the format in advance. Write your feedback within an hour, before the debrief changes your memory of it.
A typical loop runs an HR screen, then this coding round, then system design for SDE 2 and above, then a conversation with the hiring manager. For the first screen, see HR interview questions.
Frequently asked questions
Should I use LeetCode-style questions?
One short algorithm problem is a fair baseline. For most product roles, practical problems close to your daily work predict performance better.
Editor or whiteboard?
A real editor with syntax highlighting, in the candidate's language where you can.
Are take-home assignments better than live coding?
They show real work but cost the candidate time. Keep them under three hours, or pay for longer ones, and review them together on a call.
Hiring for a role this quarter?