WEEK 09 · 2026.09.21-09.27 · WRITER GATE

Day 1 - FB Post Search FULL: attempt, requirements and HLD

2026-09-21 · MON · 35 分钟闭卷设计 FB Post Search,然后用原文 anchors 修正实体、API、倒排索引和排序路径。

今日固定时间表

三个学习窗口必须保持 exactly 08:50-10:55, 14:30-16:15, 20:30-21:15。

08:50-09:2508:50-10:55 system design
FB Post Search 35-minute design attempt: requirements, entities, write path, read path, latency split.
09:25-10:0508:50-10:55 system design
Read live headings through search and sort HLD; copy every missed requirement into the attempt repair.
10:05-10:3508:50-10:55 system design
Whiteboard inverted index construction: tokenization, posting list, index document, visibility snapshot, refresh.
10:35-10:5508:50-10:55 system design
DDIA Ch4 decision cards for full text and multi-column/indexed sort choices.
14:30-16:15NeetCode Graphs
Three contiguous Graphs slots below; no other tag.
20:30-21:15English recall outline: explain source of truth vs search index, then say recall/rank/presentation latency separately.

算法模块

NeetCode Graphs, exactly three slots today, contiguous slots 1-3 of 21.

#Problem / modePatternInvariantBug riskTimeSpace
1Number of Islands
Graphs · NEW · 30m solve + 5m evidence
DFS/BFS grid componentsvisited prevents recounting the same islandforgetting to mark before recursion/queue pushO(mn)O(mn)
2Max Area of Island
Graphs · NEW · 30m solve + 5m evidence
DFS/BFS connected areaeach land cell contributes exactly once to one componentmixing rows/cols or missing zero gridO(mn)O(mn)
3Flood Fill
Graphs · NEW · 30m solve + 5m evidence
source color expansiononly original-color reachable cells are recolorednewColor equals original causing infinite revisitO(mn)O(mn)

今日产出

必须交付FB Post Search first-pass HLD plus full-reading anchor coverage through sorted search path.
修复规则If the design sorts all matching posts at request time, rewrite it into bounded retrieval plus rank.

Hello Interview 精确目录

使用 live heading 的 original title 和 direct anchor。

项目Level精确 canonical sectionDispositionDay
FB Post Searchh2Understanding the Problemrequired readingDay 1
FB Post Searchh3Functional Requirementsrequired readingDay 1
FB Post Searchh3Non-Functional Requirementsrequired readingDay 1
FB Post Searchh2Scale estimationsrequired readingDay 1
FB Post Searchh2The Set Uprequired readingDay 1
FB Post Searchh3Planning the Approachrequired readingDay 1
FB Post Searchh3Defining the Core Entitiesrequired readingDay 1
FB Post Searchh3API or System Interfacerequired readingDay 1
FB Post Searchh2High-Level Designrequired readingDay 1
FB Post Searchh31) Users should be able to create and like posts.required readingDay 1
FB Post Searchh32) Users should be able to search posts by keyword.required readingDay 1
FB Post Searchh5Approachrequired readingDay 1
FB Post Searchh5Challengesrequired readingDay 1
FB Post Searchh5Approachrequired readingDay 1
FB Post Searchh5Challengesrequired readingDay 1
FB Post Searchh33) Users should be able to get search results sorted by recency or like count.required readingDay 1

DDIA 精确决策卡

Only DDIA Ch4 and Ch13 decision links are allowed.

DayProjectDecisionLink
Day 1FB Post Searchkeyword search is an inverted index, not SQL LIKEhttps://ddia.vonng.com/ch4/#sec_storage_full_text
Day 1FB Post Searchrecency and like sort need index/ranker fields, not presentation sortinghttps://ddia.vonng.com/ch4/#sec_storage_index_multicolumn

Artifacts

PDF is intentionally absent; Week 9 requires MP3 only for the FULL/TRANSFER scripts.

Local study materials
Detailed lecture notes, audio, recall scripts, PDFs, Staff Q&A, and mock packs are archived locally and are intentionally not published on this site.