CSE Roadmap

Core tier · about 2 hours · 7 parts

Part 6 of 7 · 1 min read

How candidates lose marks

Six habits to avoid.

How candidates lose marks

  • Coding at once. No questions, then a rewrite after the first change request.
  • Too many classes. Fifteen classes for a prompt that needs six. Every class must earn its place.
  • Too few classes. One Manager class that does everything, which cannot be extended.
  • Patterns for show. A factory or an observer that no requirement needs. Level 4 covers when a pattern fits.
  • No edge cases. Nothing about double booking, empty input or time zones.
  • Silence. Writing for ten minutes without saying why.

Common mistake

Starting with the code. The first five minutes of questions decide whether the next forty go smoothly.

Interview angle

Answer in your head first, then open it.

How is LLD different from HLD?

HLD chooses services, data stores and capacity. LLD chooses classes, interfaces and rules inside a service.

What do you do first in an LLD round?

Ask about scope: actors, main flows, limits, and what is out of scope.

What do you do when the interviewer adds a requirement?

Say which classes change, and prefer adding a class to editing many.

Check yourself: 1. Which habit wastes the most time? 2. Why can too few classes also lose marks? 3. What do you say when a new requirement arrives?

Words you will meet

Word Meaning
LLD Design of classes, interfaces and rules inside one program
Entity A thing the system keeps track of, such as a room or a booking
Extensibility How easily a design takes a new feature
Record A short Java class that only holds values
Overlap Two time ranges that share some time