Skip to content
Jarviix

60-day SSE plan · Day 37 of 60

Tic Tac Toe • Distributed Cache (Redis-like) • Union-Find • Tech: Design Pattern

Day37

60-day SSE plan

Tic Tac Toe • Distributed Cache (Redis-like) • Union-Find • Tech: Design Pattern

Algorithm

DSA

Medium

Union-Find — Redundant Connection (LC 684)

Find the extra edge that creates a cycle in an undirected graph.

Example

Input: edges forming a cycle → Output: the extra edge

Where it shows up

Cycle detection, connectivity in networks, Kruskal pre-checks.

Low-level design

LLD

Tic Tac Toe

Requirements

  • Design 3x3 game; win/draw detection; replay.

Expectations

  • Classes for Board, Player, Game; strategy for winner check.
  • Unit tests for edge cases.

Where it shows up

Turn-based game engines, board game modeling.

References

High-level design

HLD

Distributed Cache (Redis-like)

Requirements

  • SET/GET/DEL, TTL; sharding; replication; eviction policies.

Expectations

  • Consistent hashing, leader election, cache-aside/write-through.
  • Failure handling & split-brain prevention.

Where it shows up

Backend acceleration, DB offload, low latency reads.

References

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

Automated testing, continuous integration, and quality assurance in software development lifecycles.