# Databricks Coding Interview Questions

> 31 DSA problems asked in Databricks coding interviews and online assessments, sorted easiest first with hints. Free practice for placements on InternHack.

Canonical: https://www.internhack.in/learn/dsa/companies/databricks
Last updated: 2026-11-28

31 DSA problems tagged as asked in Databricks coding interviews and online assessments. Below are all 31: 1 easy, 23 medium and 7 hard. Start with the easy ones, then move to medium. Practise free on InternHack and track your progress.

## Databricks DSA problems, easiest first

1. [Number of Recent Calls](https://www.internhack.in/learn/dsa/problem/number-of-recent-calls) (Easy)
2. [Closest Leaf in a Binary Tree](https://www.internhack.in/learn/dsa/problem/closest-leaf-in-a-binary-tree) (Medium)
3. [Design Hit Counter](https://www.internhack.in/learn/dsa/problem/design-hit-counter) (Medium)
4. [Design Tic-Tac-Toe](https://www.internhack.in/learn/dsa/problem/design-tic-tac-toe) (Medium)
5. [Find All Anagrams in a String](https://www.internhack.in/learn/dsa/problem/find-all-anagrams-in-a-string) (Medium)
6. [Find Peak Element](https://www.internhack.in/learn/dsa/problem/find-peak-element) (Medium)
7. [Find the Length of the Longest Common Prefix](https://www.internhack.in/learn/dsa/problem/find-the-length-of-the-longest-common-prefix) (Medium)
8. [Finding Pairs With a Certain Sum](https://www.internhack.in/learn/dsa/problem/finding-pairs-with-a-certain-sum) (Medium)
9. [House Robber](https://www.internhack.in/learn/dsa/problem/house-robber) (Medium)
10. [House Robber II](https://www.internhack.in/learn/dsa/problem/house-robber-ii) (Medium)
11. [IP to CIDR](https://www.internhack.in/learn/dsa/problem/ip-to-cidr) (Medium)
12. [Longest Mountain in Array](https://www.internhack.in/learn/dsa/problem/longest-mountain-in-array) (Medium)
13. [Longest Palindrome by Concatenating Two Letter Words](https://www.internhack.in/learn/dsa/problem/longest-palindrome-by-concatenating-two-letter-words) (Medium)
14. [Merge Intervals](https://www.internhack.in/learn/dsa/problem/merge-intervals) (Medium)
15. [Minimum Knight Moves](https://www.internhack.in/learn/dsa/problem/minimum-knight-moves) (Medium)
16. [Permutation in String](https://www.internhack.in/learn/dsa/problem/permutation-in-string) (Medium)
17. [RLE Iterator](https://www.internhack.in/learn/dsa/problem/rle-iterator) (Medium)
18. [Rotting Oranges](https://www.internhack.in/learn/dsa/problem/rotting-oranges) (Medium)
19. [Shortest Path in Binary Matrix](https://www.internhack.in/learn/dsa/problem/shortest-path-in-binary-matrix) (Medium)
20. [Snapshot Array](https://www.internhack.in/learn/dsa/problem/snapshot-array) (Medium)
21. [Spiral Matrix](https://www.internhack.in/learn/dsa/problem/spiral-matrix) (Medium)
22. [Step-By-Step Directions From a Binary Tree Node to Another](https://www.internhack.in/learn/dsa/problem/step-by-step-directions-from-a-binary-tree-node-to-another) (Medium)
23. [String to Integer (atoi)](https://www.internhack.in/learn/dsa/problem/string-to-integer-atoi) (Medium)
24. [Time Based Key-Value Store](https://www.internhack.in/learn/dsa/problem/time-based-key-value-store) (Medium)
25. [Count Integers in Intervals](https://www.internhack.in/learn/dsa/problem/count-integers-in-intervals) (Hard)
26. [Minimum Cost to Reach Destination in Time](https://www.internhack.in/learn/dsa/problem/minimum-cost-to-reach-destination-in-time) (Hard)
27. [Number of Flowers in Full Bloom](https://www.internhack.in/learn/dsa/problem/number-of-flowers-in-full-bloom) (Hard)
28. [Shortest Path in a Grid with Obstacles Elimination](https://www.internhack.in/learn/dsa/problem/shortest-path-in-a-grid-with-obstacles-elimination) (Hard)
29. [Split Message Based on Limit](https://www.internhack.in/learn/dsa/problem/split-message-based-on-limit) (Hard)
30. [Text Justification](https://www.internhack.in/learn/dsa/problem/text-justification) (Hard)
31. [Unique Paths III](https://www.internhack.in/learn/dsa/problem/unique-paths-iii) (Hard)

## Prepare for the rest of the Databricks process

- [Aptitude questions by company](https://www.internhack.in/learn/aptitude/companies)
- [Technical interview questions](https://www.internhack.in/learn/interview)
- [Free ATS resume check](https://www.internhack.in/ats-score/try), no signup

## Other companies

- [Google](https://www.internhack.in/learn/dsa/companies/google) (2217)
- [Amazon](https://www.internhack.in/learn/dsa/companies/amazon) (1938)
- [Meta](https://www.internhack.in/learn/dsa/companies/meta) (1387)
- [Microsoft](https://www.internhack.in/learn/dsa/companies/microsoft) (1352)
- [Bloomberg](https://www.internhack.in/learn/dsa/companies/bloomberg) (1173)
- [Tiktok](https://www.internhack.in/learn/dsa/companies/tiktok) (383)
- [Uber](https://www.internhack.in/learn/dsa/companies/uber) (381)
- [Apple](https://www.internhack.in/learn/dsa/companies/apple) (356)
- [Oracle](https://www.internhack.in/learn/dsa/companies/oracle) (340)
- [Goldman Sachs](https://www.internhack.in/learn/dsa/companies/goldman-sachs) (270)
- [Adobe](https://www.internhack.in/learn/dsa/companies/adobe) (227)
- [TCS](https://www.internhack.in/learn/dsa/companies/tcs) (217)
- [Salesforce](https://www.internhack.in/learn/dsa/companies/salesforce) (189)
- [Linkedin](https://www.internhack.in/learn/dsa/companies/linkedin) (180)
- [Zoho](https://www.internhack.in/learn/dsa/companies/zoho) (179)
- [IBM](https://www.internhack.in/learn/dsa/companies/ibm) (170)
- [Infosys](https://www.internhack.in/learn/dsa/companies/infosys) (158)
- [Walmart Labs](https://www.internhack.in/learn/dsa/companies/walmart-labs) (152)
- [Accenture](https://www.internhack.in/learn/dsa/companies/accenture) (144)
- [Nvidia](https://www.internhack.in/learn/dsa/companies/nvidia) (137)
- [Yandex](https://www.internhack.in/learn/dsa/companies/yandex) (134)
- [DE Shaw](https://www.internhack.in/learn/dsa/companies/de-shaw) (124)
- [Visa](https://www.internhack.in/learn/dsa/companies/visa) (124)
- [Flipkart](https://www.internhack.in/learn/dsa/companies/flipkart) (117)

## Related

- [Home](https://www.internhack.in/)
- [Learn](https://www.internhack.in/learn)
- [DSA by company](https://www.internhack.in/learn/dsa/companies)
