Skip to content
Jarviix

60-day SSE plan · Day 1 of 60

Parking Lot System • URL Shortener • Sliding Window • Tech: Design Pattern

Day1

60-day SSE plan

Parking Lot System • URL Shortener • Sliding Window • Tech: Design Pattern

Algorithm

DSA

Easy–Medium

Sliding Window — Minimum Window Substring (LC 76)

Find the smallest substring of s that contains all characters of t.

Example

Input: s="ADOBECODEBANC", t="ABC" → Output: "BANC"

Where it shows up

Token scanning, query parsing, log/event windowing.

Low-level design

LLD

Parking Lot System

Requirements

  • Multiple floors, spot types (Car/Bike/Truck).
  • Park, unpark, ticketing, fee calculation.

Expectations

  • Provide UML class diagram (ParkingLot, Floor, Spot, Vehicle, Ticket, Payment).
  • Implement core classes and simulate park/unpark; discuss extendability.

Where it shows up

Real parking garages in malls/airports.

High-level design

HLD

URL Shortener

Requirements

  • Shorten URLs, redirect keys, optional custom alias, basic stats.
  • Scale to millions of reads/day; low latency redirects.

Expectations

  • APIs, DB schema, key generation, cache-aside, sharding strategy.
  • Trade-offs: SQL vs NoSQL, consistency, TTL, analytics pipeline.

Where it shows up

Bitly/Twitter links, marketing campaigns, QR codes.

Today's deep-dive

Tech

Design Pattern

Implement Strategy + Observer around a pricing/notification domain. Unit test swapping strategies without touching clients.

Where it shows up

Dynamic pricing engines, notification systems, and plug-and-play business logic where strategies or observers change at runtime.