Uber (Intern) | On Campus Interview | Smallest String With Swaps
Anonymous User
876

Hi everyone, I gave my first interview for 6 months internship at uber (Bangalore, India) during on campus placement at our college and wanted to share my interview experience for futrure candidates,

So there were 3 rounds of interview:
1-Problem Solving round
2-Coding round (LLD)
3-HR round

Problem solving round
So I was asked Smallest String With Swaps problem on leetcode (I havent seen the problem before), as it was my first interview sadly it didnt went really well for me, I never gave a mock interview before so it took me a bit to explain my approach I used Union find approach (could have also used bfs ) with normal sort ( counting sort would have been more efficient ) after i coded my code was first getting some error I solved it but the final answer was incorrect and I couldnt debug it it time.
The question link
https://leetcode.com/problems/smallest-string-with-swaps/description/

Result
Didnt move forward to round 2 but it was a great learning experience the interviewer was really humble and respectfull to me the whole time. My Suggestion would be to give mock interviews before your actual interview and practice writing clean code.

Comments (2)