Uber
Uber

Software Development Engineer 2

Longest Common Prefix

Medium
ROUND 2 - Advanced DSAcodingCandidate Selected

Write a function to find the longest common prefix string amongst an array of strings. Initial implementations could use sorting with a time complexity of O(n log n), followed by a more efficient solution using a Trie with O(n).

This question was asked in

Uber Software Development Engineer 2 Interview Experience

The Uber interview process for the SDE-2 role was comprehensive and technically demanding. Candidates went through multiple rounds, starting with online assessments focused on data structures and algorithms, followed by machine coding and system design challenges. The complexity of the interview increased, covering various topics such as advanced DSA and system scalability concepts. Overall, the experience at Uber appears to rigorously evaluate both algorithmic skills and design principles critical for a software engineering role.

AI Powered

Share Your Story

Share your interview in your own words — our AI handles the rest. Hardly takes 2 minutes.

Mock Interviews & 1:1 Guidance

Practice mock interviews or book a 1:1 call for career guidance, resume reviews, and more.

AI Interview Prep

AI interview prep powered by real interview data.

Show Your Love!

Connect with us on social media

Longest Common Prefix | Uber Interview Question | InterviewRecap