Google Interview Question
- 3of 3 votes
suppose a string is consists of a, b, and c- codingfunnyguy November 25, 2013 in United States
Now given a integer N, output the amount of all possible strings of length N that don't of have consecutive a,b,c.
e.g. given N=5, string bacca is invalid since the first 3 letters have consecutive a,b,c. and bbbbb is valid.
| Report Duplicate | Flag | PURGE
Interview Type: In-Person
Open Chat in New Window