M5-003Medium漏斗与留存 · Funnels & retention🔥 大厂高频出现 1 次

写一个三步漏斗(浏览 → 加购 → 购买),要求时间顺序正确。

Write a three-step funnel (view → add to cart → purchase) with correct ordering in time.
💡 考场高分一句话答案:

按用户取每个事件的最早时间,再用 COUNTIF 加顺序约束(t2 > t1 且 t3 > t2)统计各步人数。

Take each user's earliest timestamp per event, then count with an ordering constraint (t2 > t1 and t3 > t2) to get each step's population.

🧭 Playbook 核心提示 / Actionable Calibration:

进阶追问:如果要求“7 天内完成整个漏斗”,把条件改成 t2 > t1 AND DATE_DIFF(DATE(t2), DATE(t1), DAY) <= 7,并逐级传递。

📌 核心考察要点 (Key Points)

  • 顺序约束是漏斗题的核心:不加会高估转化
  • 时间窗:通常要求“同一 session”或“7 天内”完成,需明确
  • 分母:每步转化率的分母是上一步人数,不是总人数
  • 去重:COUNT(DISTINCT user_id),不是 COUNT(*)
  • The ordering constraint is the whole question: without it, conversion is overstated
  • Window: usually 'same session' or 'within 7 days' — state which
  • Denominator: each step's conversion rate is over the previous step, not the total
  • Dedup: COUNT(DISTINCT user_id), not COUNT(*)

🔍 大厂面试官连环追问 (Follow-ups)

  • 如何做“任意顺序”的漏斗(不要求严格顺序)?
  • 如何按渠道拆分漏斗转化率?

🎯 关联大厂考题实战训练 (1 题)

嫌字多看太累?进入苏格拉底式对话推演实验室

零打字负担,以大厂考官真实困境切入,通过点选直觉选项暴露思维盲区,手把手推导 Why。

💬 开启对话式破冰 ➔
⚡
想检验本题的肌肉记忆?进入 3 阶闪卡主动回忆盲测
隐藏答案遮罩,自测:审题锚点 ➔ 数理公式机理 ➔ 工业标杆代码与连环追问。3 分钟攻破认知盲区!
🎯 立即在闪卡中盲测此题➔