# Performing in the Coding Interview

> Communicate like an engineer in a live DSA round: clarify, talk through brute force and optimisation, code cleanly, test out loud and handle hints. Free notes,...

Canonical: https://www.internhack.in/roadmaps/tracks/cs-fundamentals/coding-interview-skills
Last updated: 2026-11-28

Communicate like an engineer in a live DSA round: clarify, talk through brute force and optimisation, code cleanly, test out loud and handle hints.

Intermediate · about 10 hours · difficulty 3/5

Learn first: [Pattern-Based Problem Solving](https://www.internhack.in/roadmaps/tracks/cs-fundamentals/pattern-based-practice)

Solving a problem alone and solving it in front of an interviewer are different skills. Interviewers grade **problem solving, communication, code quality and testing**, not just the final answer.

### A round, minute by minute

- **Clarify (2-3 min)**: restate the problem, ask about input size, duplicates, negative numbers, empty input and expected output format. Work a small example together.
- **Brute force (2-3 min)**: state it and its complexity. This proves you understand the problem and gives a fallback.
- **Optimise (5-10 min)**: say which bottleneck you are attacking and which pattern might help. Get agreement before coding.
- **Code (15-20 min)**: clean names, helper functions, no clever one-liners. Narrate the key decisions, not every keystroke.
- **Test (5 min)**: dry run your code on the example, then edge cases. Find your own bugs before the interviewer does.
- **Complexity**: state final time and space, and mention any trade-offs.

### Handling difficulty

- Stuck? Say what you are considering: "Sorting would give n log n; I wonder if a hash map can do better." Silence is the real failure.
- **Take hints gracefully** and build on them; using hints well is a positive signal.
- If time runs short, explain what remains and how you would finish it.

### Platforms and formats

Shared editors (CoderPad, CodeSignal, Google Docs with no autocomplete), whiteboards in on-site rounds, and occasionally your own IDE. Practise at least some problems without autocomplete or running code.

### Common failure modes

Coding before clarifying, going silent for five minutes, arguing with hints, skipping testing, and using a language feature you cannot explain.

Good enough to move on: in mock interviews you consistently finish a medium problem with clean, tested code in 35 minutes while explaining your reasoning throughout.

## Key concepts

- **Clarifying questions and examples**
- **Brute force then optimise**
- **Thinking out loud**
- **Clean interview code**
- **Dry runs and edge case testing**
- **Using hints well**
- **Coding without autocomplete**

## Mini project

Solve ten medium problems in a plain editor with no autocomplete and no running code, recording your voice as you go. Review each recording against the six-step structure and note where you went silent or skipped testing.

## Check yourself

Your optimal idea is not working ten minutes before the end. What do you say and do to maximise your evaluation?

## Free resources

- [Tech Interview Handbook: Coding interview best practices](https://www.techinterviewhandbook.org/coding-interview-techniques/) (Tech Interview Handbook)
- [LeetCode Explore: Interview crash courses](https://leetcode.com/explore/) (LeetCode)

Previous: [Online Assessments and Aptitude](https://www.internhack.in/roadmaps/tracks/cs-fundamentals/online-assessments-aptitude) · Next: [Behavioral and HR Interviews](https://www.internhack.in/roadmaps/tracks/cs-fundamentals/behavioral-interviews)

## More in Interview and Placement Preparation

- [Building a Strong Tech Resume](https://www.internhack.in/roadmaps/tracks/cs-fundamentals/resume-building)
- [Projects, GitHub and Open Source](https://www.internhack.in/roadmaps/tracks/cs-fundamentals/projects-and-portfolio)
- [Online Assessments and Aptitude](https://www.internhack.in/roadmaps/tracks/cs-fundamentals/online-assessments-aptitude)
- [Performing in the Coding Interview](https://www.internhack.in/roadmaps/tracks/cs-fundamentals/coding-interview-skills)
- [Behavioral and HR Interviews](https://www.internhack.in/roadmaps/tracks/cs-fundamentals/behavioral-interviews)
- [Mock Interviews and Feedback Loops](https://www.internhack.in/roadmaps/tracks/cs-fundamentals/mock-interviews)
- [Company-Specific Preparation and Offers](https://www.internhack.in/roadmaps/tracks/cs-fundamentals/company-specific-prep)

## Related

- [Roadmaps](https://www.internhack.in/roadmaps)
- [CS Fundamentals and Placement Prep Roadmap](https://www.internhack.in/roadmaps/tracks/cs-fundamentals)
