Return every binary string of length n (made of 0 and 1) that does not contain two 1s next to each other, in dictionary order. For n = 3: 000, 001, 010, 100, 101. For n = 0 the answer is the single empty string [""].
Example 1
Input:
no_adjacent_ones(3)
Output:
['000', '001', '010', '100', '101']
Example 2
Input:
no_adjacent_ones(0)
Output:
['']
0 <= n <= 161.6^n strings (4,181 for n = 18).No results yet
Run your code to check it against the examples, or submit to run every test.