NewProject Coding is here — build features and fix bugs in real codebases with an AI assistantSee what's new
avatar
User-l0js8Oct 15, 2026

Pinterest SWE onsite, grant access round plus two SDs

Interview Experiences
pinterest

Pinterest SWE onsite, grant access round plus two SDs

Finished my Pinterest SWE onsite Thursday, 5 rounds, no news yet. Writing the coding down while I still remember it.

Coding 1 was the grant access thing. Advertisers get access to groups, and groups nest like world > country > city. You implement grant, revoke and check. If an advertiser has access to a country they have it for every city under it. I built it as a tree with parent pointers. Follow up was making grant and revoke O(1) and check O(depth), so you just store the grant on the node and walk up from the bottom when checking. Took me a minute to see I didn't need to push anything down to the children.

Coding 2 was aggregating violation logs, records of pin id, policy, date. Count unique pins for a policy, then unique pins in a date range, then unique pins per policy inside a range. Not hard but pin ids repeat everywhere. I asked what to return for a policy with zero hits and the interviewer wouldn't really say, so I just picked something.

Then two system design rounds, which I somehow didn't expect going in tbh. One was a notification system, the other a rate limiter. Rate limiter guy kept having me compare token bucket vs sliding window for their traffic, felt like 20 min of just that lol.

BQ was short, mostly about giving someone negative feedback.

Overall fine I think?

457662

Replies (4)

avatar
priyashahOct 15, 2026

two SD rounds caught me off guard too, recruiter only mentioned one on the prep call

20
avatar
kevinzhou94Oct 15, 2026

yeah same, mine said design round singular. glad it wasn't just me

21
avatar
User-gk4w9Oct 15, 2026

for the grant access one did they care about revoke on a child when the grant was on the parent?

16
avatar
kevinzhou94Oct 15, 2026

I asked and they said keep it simple, revoke only removes what was granted at that exact node

8
avatar
User-7dzbnOct 16, 2026

good luck, how long did the phone screen to onsite take for you?

9
avatar
kevinzhou94Oct 16, 2026

about 3 weeks, most of that was scheduling

2
avatar
rohan.vermaOct 16, 2026

had something similar to the violation logs one at a different company, the dedupe across date ranges is where I messed up

5
No more replies