Uber Internship (No Offer)
Anonymous User
2911

Before coding the interviewer asked me about resume, and past experiences and projects.

Question:
Uber used to call Ubercab, and they have a lot of "ubercab" stickers and assuming you can cut them into individual characters. You are now given a word in string, and return how many stickers you need to make the word.

Example 1:

Input: "abc"
Output: 1
Explanation: because you only need a 'ubercab' sticker to make 'abc'

Example 2:

Input: "abcd:
Output: -1
Explanation: you do not have 'd'

Example 3:

Input: "uber cab"
Output: 1
Explanation: you are allow to use any space character

Example 4:

Input: "bb"
Output: 1

I think my interview question wasn't hard, but I had difficult time came up with all testcases.

https://leetcode.com/playground/7pzukmTK

Result: Rejection

Comments (10)