PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/Coding & Algorithms/Coinbase

Process food delivery data queries

Last updated: Mar 29, 2026

Quick Overview

This question evaluates competency in time-windowed data aggregation, Top-K ranking, transaction analytics, and geospatial proximity calculations, requiring efficient algorithms and appropriate data structures for aggregations, sorting, and nearest-neighbor queries.

  • Medium
  • Coinbase
  • Coding & Algorithms
  • Software Engineer

Process food delivery data queries

Company: Coinbase

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: Medium

Interview Round: Onsite

##### Question Given menus and restaurants, return the restaurant offering the lowest total price for an order and that is geographically closest. Given menu item prices and a list of orders within a time window, compute the window’s total order price, order count, and average order value. Within a time window, return the Top-K orders by total price and the Top-K menu items by transaction volume.

Quick Answer: This question evaluates competency in time-windowed data aggregation, Top-K ranking, transaction analytics, and geospatial proximity calculations, requiring efficient algorithms and appropriate data structures for aggregations, sorting, and nearest-neighbor queries.

Related Interview Questions

  • Implement an In-Memory Database - Coinbase (hard)
  • Implement a Coin-Constrained Jump Strategy - Coinbase (hard)
  • Implement Game Physics and Block Mining - Coinbase (hard)
  • Compute Total Manual Distance - Coinbase (medium)
  • Implement a Flappy Bird Jump Agent - Coinbase
Coinbase logo
Coinbase
Aug 4, 2025, 10:55 AM
Software Engineer
Onsite
Coding & Algorithms
3
0
Question

Given menus and restaurants, return the restaurant offering the lowest total price for an order and that is geographically closest. Given menu item prices and a list of orders within a time window, compute the window’s total order price, order count, and average order value. Within a time window, return the Top-K orders by total price and the Top-K menu items by transaction volume.

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Coding & Algorithms•More Coinbase•More Software Engineer•Coinbase Software Engineer•Coinbase Coding & Algorithms•Software Engineer Coding & Algorithms
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.