All Questions
2 questions
7
votes
5
answers
736
views
String combinations of 0 and 1
I was asked this question in an interview:
Given a string s consisting of 0, 1 and ...
3
votes
3
answers
12k
views
Letter combinations of phone dial pad number
In preparation for interviews, I have written a solution to this question:
Given a sequence of numbers (34128) and an input map such as a dial
pad on a phone (2->[a,b,c], 3->[d,e,f], 4->[g,h,i]) ...