PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/Coding & Algorithms/DoorDash

Implement a simple service with tests

Last updated: Mar 29, 2026

Quick Overview

This question evaluates implementation skills including clear control flow, robust input validation, requirement clarification, and unit test design for a small service class.

  • Medium
  • DoorDash
  • Coding & Algorithms
  • Software Engineer

Implement a simple service with tests

Company: DoorDash

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: Medium

Interview Round: Onsite

You're given a short written specification for a small service class (no external dependencies). Implement the class using clear control flow (primarily if/else) and robust input validation. The exercise has three parts: ( 1) implement the core logic; ( 2) extend it with an additional requirement based on clarified assumptions; ( 3) write unit tests that cover happy paths, edge cases, and error handling for both parts. State all assumptions explicitly and provide method signatures and representative test cases.

Quick Answer: This question evaluates implementation skills including clear control flow, robust input validation, requirement clarification, and unit test design for a small service class.

Related Interview Questions

  • Maximize Chef Assignment Profit - DoorDash (medium)
  • Compute Courier Delivery Pay - DoorDash (easy)
  • Compute Nearest Destination Distances - DoorDash (easy)
  • Count changed nodes between two menu trees - DoorDash (hard)
  • Calculate Daily Driver Pay - DoorDash (hard)
DoorDash logo
DoorDash
Jul 15, 2025, 12:00 AM
Software Engineer
Onsite
Coding & Algorithms
4
0

You're given a short written specification for a small service class (no external dependencies). Implement the class using clear control flow (primarily if/else) and robust input validation. The exercise has three parts: (

  1. implement the core logic; (
  2. extend it with an additional requirement based on clarified assumptions; (
  3. write unit tests that cover happy paths, edge cases, and error handling for both parts. State all assumptions explicitly and provide method signatures and representative test cases.

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Coding & Algorithms•More DoorDash•More Software Engineer•DoorDash Software Engineer•DoorDash 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.