Udemy Coding Interview Questions
26 Udemy coding interview problems with full optimal solutions — 15 easy, 8 medium, 3 hard. Every problem ships with multiple approaches (brute-force first, then the optimal), complexity tables for each, company-specific tips on what an Udemy interviewer values, and a FAQ section.
Showing 3 problems of 26
- #24hardfoundational
24. Median of Two Sorted Arrays
Find the median of two sorted arrays in O(log(m+n)) — Udemy uses this to test binary search mastery applied to statistical ranking and recommendation scoring.
- #25hardfoundational
25. Regular Expression Matching
Implement regex matching with '.' and '*' — Udemy uses 2D DP here to assess dynamic programming depth in candidates targeting search and content filtering roles.
- #26hardfoundational
26. Trapping Rain Water
Compute how much water is trapped between elevation bars — Udemy uses this two-pointer classic to test candidates' ability to reason about prefix/suffix max arrays for data-bucketing problems.