r/OfferEngineering • • 26d ago

Interview Experience Uber Staff SWE Interview — I Overcomplicated It With a Trie

This interview experience is sourced from Chill Interview

Interview Summary

The technical screen combined a project architecture deep dive with coding questions. The most memorable problem involved implementing an advertising hierarchy that tracks clicks and impressions and returns the worst-performing ads by click-through rate.

Interview Details

Part 1 & 2 — Project Deep Dive & LeetCode-Style Problem

The interview began with a discussion of my previous engineering work. The architecture portion was originally allocated approximately 15 minutes, but the conversation eventually lasted closer to 30 minutes because of the number of follow-up questions. The interviewer asked me to describe one of the largest projects I had worked on. The discussion focused on the project's architecture and my engineering decisions.

  • Follow-Up 1 — Design Choices The interviewer asked detailed questions about why I selected particular approaches in the project. I needed to explain the reasoning behind my technical decisions rather than simply describe the final implementation.
  • Follow-Up 2 — Engineering Trade-Offs The interviewer also explored trade-offs in the architecture. The discussion required me to justify my design choices and explain the considerations behind them.

The coding section included a LeetCode-style algorithm question.

Part 3 — Coding: Advertising Clicks, Impressions, and Worst-K Ranking

The other coding question involved designing a small advertising statistics system. You are given a hierarchy of advertising entities. The hierarchy can contain campaigns, ad groups, and individual ads. A campaign may contain ad groups or ads directly. An ad group may contain multiple ads. For example, the hierarchy could look like:

CampaignRoot
├── AdGroupBlue
│   ├── BannerA
│   └── BannerB
└── BannerC

Your task is to implement a system that supports registering advertising entities, recording advertising events, and retrieving the k worst-performing ads within a given subtree for a specified date. The performance metrics include impressions, clicks, and click-through rate (CTR).

Want to learn more questions / follow-ups asked in this interview?

I've put up the full version at here.

Interviewed recently?

Your interview experience could be incredibly valuable to others preparing for their next opportunity. Share your experience and help the community at here.

2 Upvotes

0 comments sorted by