Linkedin SDE 2 Phone Screen

Anonymous User
1232
Oct 29, 2025
Oct 29, 2025

Q1 - Find depth of a binary tree.

Q2 - Given the standard mapping from English letters to digits on a phone keypad (1 → "" 2 -> a,b,c 3 -> d,e,f 4 -> g,h,i 5 -> j,k,l 6 -> m,n,o 7 -> p,q,r,s 8 -> t,u,v 9 -> w,x,y,z),

write a program that outputs all words that can be formed from any n-digit phone number from the list of given KNOWN_WORDS considering the mapping mentioned above.

Q1 - It was an easy question, I was able to solve it quickly.
Q2 - It is similar to Letter Combinations of Phone number question in Leetcode, so I approached the problem recursively and was able to write the recursive solution. The interviewer was expecting a more optimised version, I couldn't come up with the optimised approach within the last 5-10 mins of the interview. Later on, figured out it was a very simple yet tricky solution.

What are my chances?

Comments (4)