I had my Onsite from google ,didnt do well . Practiced around 100 problems but found no success. The questions was as follows :
Initially the question was very vague, it said compute the max probablity of a generated word of length m given m and a Probablity table the interviewer only mentioned that P['a'|'b'] = 0.05 means the probablity of charachter 'a' before 'b' is 0.05 was able to come up with a brute force solution but even that wasnt complete . had to come up with the matematical formulae to compute the probablity which is a markov chain i guess ,this also looks like a graph problem .Any ideas of how to solve it optimally ?
Comments (7)


