Pinterest 的 OA 是我近期做过最“有真实感”的一套题了,不走花哨路线,题目本身就像是你工作中写脚本、处理数据、优化逻辑时会遇到的问题。
整个 OA 分为三道 coding 题 + 两道 SQL 单选题,没有 hackerrank 而是用自研平台,界面非常干净。

一、Coding 题目
1. Top K Most Frequent Hashtags
You’re given a list of hashtags. Return the top K most frequent hashtags sorted by frequency and then lexicographically.
Input: hashtags = ["#cat", "#fun", "#cat", "#life", "#fun"], k = 2
Output: ["#cat", "#fun"]
Constraints:
- 1 <= len(hashtags) <= 10^5
- 1 <= k <= 100
- Hashtags are lowercase strings starting with ‘#’
2. Detect Continuous Growth Days
Given a list of user daily engagement counts, return the length of the longest continuous strictly increasing subsequence.
Input: [10, 15, 20, 10, 12, 14, 9]
Output: 3 # (10, 12, 14)
Constraints:
- 1 <= len(array) <= 10^5
- Values are non-negative integers
3. Flatten Nested Categories
Pinterest categories can be nested in JSON-like structures. You’re given a nested dictionary and asked to flatten it into dot-separatedkeys.
Input:
{
"fashion": {
"men": {
"shoes": "leather"
},
"women": "dress"
}
}
Output:
{
"fashion.men.shoes": "leather",
"fashion.women": "dress"
}
Hint: Use recursion.
二、常见 FAQ
Q1: Pinterest 的 OA 有几道题?
- 3 道 Python 编程题(数据处理为主)
- 2 道 SQL 单选题(考基本语义判断)
Q2: 题目风格偏向哪类公司?
更像 Stripe、Datadog、Redpanda 这类偏业务落地的数据类编程题,题目设计非常贴近真实工作,做起来有成就感。
Q3: debug / 算法题难度如何?
这套没有 debug,但是题目需要 clean code + 结构清晰,边界条件必须稳住。算法难度不高,但数据量大,需注意优化。
Q4: 是否支持使用标准库?
可以,标准 Python3 库都支持,甚至 json、collections 都能正常调用。
Q5: 提交后多久有消息?
我的经验是提交后 4 天收到面试邀请(VO),后续流程走得很快。
Programhelp|Pinterest OA 远程稳过必选方案
Pinterest 的 OA 看似简单,其实很多人会在边界处理、频率排序、字典递归 flatten 等环节掉坑。
我们的远程助攻团队已经辅助多个学员无痕完成 Pinterest、Stripe、Datadog 等数据工程类 OA。
🧠 Coding 实时语音提醒逻辑思路
🛠 边界 & 异常情况预警
📊 SQL 答案方向分析 + 快速 rule 排除
🎧 联机做题 + 无痕保障 + 自然配速控制
📬 添加微信 programhelp(备注 Pinterest OA)