Skip to main content

Dropbox Coding Interview Questions

28 Dropbox coding interview problems with full optimal solutions — 16 easy, 10 medium, 2 hard. Every problem ships with multiple approaches (brute-force first, then the optimal), complexity tables for each, company-specific tips on what an Dropbox interviewer values, and a FAQ section.

Showing 16 problems of 28

  • #17easyfoundational

    17. Longest Common Prefix

    Find the longest prefix shared by every string in an array — Dropbox uses this pattern when collapsing shared directory prefixes to avoid redundant metadata transfers during a sync pass.

  • #1easyfoundational

    1. Two Sum

    Find two indices whose values sum to a target; the canonical hash-map warm-up Dropbox uses to gauge baseline fluency.

  • #2easyfoundational

    2. Valid Parentheses

    Determine if a string of brackets is balanced; Dropbox uses this to probe stack reasoning for nested file-tree path parsing.

  • #3easyfoundational

    3. Merge Two Sorted Lists

    Merge two sorted linked lists into one sorted list; Dropbox uses it as a stand-in for merging two sorted delta streams from different clients.

  • #5easyfoundational

    5. Remove Element

    Remove all occurrences of a value in place; Dropbox uses it to test in-place compaction patterns relevant to garbage-collecting stale chunk references.

  • #6easyfoundational

    6. Search Insert Position

    Return the index where a target belongs in a sorted array; Dropbox uses it to probe binary-search hygiene for sorted chunk-offset lookups.

  • #7easyfoundational

    7. Plus One

    Increment a big-integer represented as a digit array; Dropbox uses it to probe carry-propagation logic for monotonically increasing version counters.

  • #8easyfoundational

    8. Merge Sorted Array

    Merge two sorted arrays in place into the first; Dropbox uses it as a stand-in for merging local-edit and server-edit sequences during reconciliation.

  • #10easyfoundational

    10. Same Tree

    Determine if two binary trees are identical in structure and values; Dropbox uses it as a primer for comparing two file-tree snapshots during sync.

  • #11easyfoundational

    11. Symmetric Tree

    Decide whether a binary tree is a mirror of itself; Dropbox uses it to probe pair-pointer recursion patterns that show up in symmetric chunk verification.

  • #12easyfoundational

    12. Maximum Depth of Binary Tree

    Compute the maximum depth of a binary tree; Dropbox uses it as a primer for bounding recursion depth on deeply nested folder trees in user accounts.

  • #13easyfoundational

    13. Balanced Binary Tree

    Decide whether a binary tree is height-balanced; Dropbox uses it to probe single-pass DFS technique applicable to validating sync-tree invariants.

  • #14easyfoundational

    14. Minimum Depth of Binary Tree

    Find the shortest root-to-leaf path length; Dropbox uses it to test BFS-vs-DFS choice for early-termination tree searches in their sync metadata layer.

  • #15easyfoundational

    15. Pascal's Triangle

    Generate the first numRows of Pascal's Triangle; Dropbox uses it as a primer for building up tabulated state, a pattern that recurs in their hash-tree calculations.

Dropbox Coding Interview Questions — Full Solutions — InterviewChamp.AI