CSE Roadmap

Core tier · about 4 hours · 6 parts

Part 1 of 6 · 1 min read

Why this page comes first in Level 6

In this module you will

  • Run the five-step method on a parking lot question.
  • Pick the entities, and decide which class owns each rule.
  • Code the park and exit flow, with a fee strategy and an injected clock.
  • List the edge cases and the change requests, and say which class each one touches.
  • Explain how the lot stays correct when two cars arrive at once.

The parking lot is the most common LLD question, so it comes first. It has a small set of entities, a clear rule (a car must fit the spot) and room to show strategy, injection and thread safety. This page applies the five steps of Level 0, module 4, and the principles of Levels 2 to 5. No book was supplied for this track, so the content is common practice, not from the books. The Java code was compiled and run before it was written here. Numbers marked "made up" only show the idea.