...
Question: Given a hangman game, write a function that takes guesses.
- You may assume input
board
is of the format '---a--b–' every time it calls ur guess function. The dashes are the inputs that have not been guessed yet. - No special chars, only lower-case alphabets.
Code Block |
---|
class Solution(object): def __init__(): pass def guess(board): return '' # some character |
Second Interview:
Question: Let's say the email system breaks in a company, and the CEO wants to send a message to everyone, how he does that is that he messages all of his direct reports, and his direct reports message their direct reports, and so on and so forth until everyone gets that message. Assume that you know for every person, when they check their phone next. Write a function that tells you the time after which everyone will have received the CEO's message.