Hubspot Software Engineer Interview Questions
Master your tech interview with our curated database of real questions from top companies.
Design a bank with scheduled payments and merges
Design an in-memory banking service that supports the following operations: ( 1) CreateAccount(accountId), ( 2) Deposit(accountId, amount), ( 3) Trans...
Implement Python LRU cache with varargs
Implement an LRU cache in Python as a decorator cache(maxsize) that memoizes a target function's results. Must support positional args, args, and *kwa...
Design and implement a bank account system
Design and implement a minimal banking service with the following capabilities: 1) Create bank accounts with unique IDs and an initial balance; suppor...
Design a near-real-time weather API
System Design: Weather Data Platform (Onsite) Context and Assumptions - You are designing a service that pulls best-effort hourly weather data from an...
Implement a same-host web crawler
Implement a web crawler that, given a starting URL and an interface get_links(url) -> Iterable[str], discovers all pages under the same hostname. Requ...
Design a GPU inference API
System Design: GPU-Backed Inference Platform and API You are designing a production inference platform to serve deep learning models (vision, ranking,...
Describe handling AI safety concerns
AI Safety Risk: Identify, Assess, Mitigate, and Monitor Context Behavioral & leadership onsite prompt for a Software Engineer working on AI features. ...
Find the spammer using hasMessaged
You are given n accounts labeled 0..n-1 and an API boolean hasMessaged(a, b) that returns true if account a has sent a message to account b, and false...
Design a streaming video platform MVP
System Design: Streaming Video Platform MVP Context Design a Netflix‑like MVP that serves consumer video-on‑demand. Assume: - Global audience, single ...
Design file deduplication at scale
Design an algorithm to identify duplicate files in a large directory tree. You are given an iterator over files providing (path, size) and a function ...
Design weather API with freshness guarantees
System Design: Weather API with 10-Minute Freshness SLA Context You are designing a service that exposes a public HTTP API to return the current tempe...
Design Netflix-like MVP: browse, play, resume
Design a Netflix-like MVP (System Design) Context You are designing an MVP video streaming platform that supports browsing content, playing videos on ...
Find spammer with minimal hasMessaged calls
You have n accounts labeled 0..n-1 and an oracle hasMessaged(a, b) that returns true if account a has sent at least one message to account b. Define a...
Implement account CRUD and transfer
Design and Implement Money Movement APIs Context You are building a small money-movement service for a single currency. The system must support creati...
Schedule and execute future payments
System Design: Scheduled Payments Execution Context You are building a balance-transfer service (e.g., an internal wallet). Users can schedule a payme...
Design a weather aggregation system
System Design: Weather Data Aggregation (10-minute Updates) Context Build a service that periodically fetches weather data from third-party providers ...
Design a Netflix-like streaming platform
System Design: Netflix‑Like Video Streaming Platform Context Design a large-scale video streaming platform that supports web, mobile, and TV clients f...
Merge two sorted linked lists
Given the heads of two singly linked lists sorted in non-decreasing order, merge them into a single sorted singly linked list and return its head. Imp...