Our Feeds

Thursday, 30 January 2014

Ajith KP

Program to print Binary Numbers where adjacent bits are not 1 [Java]

This was the interview question asked to my teacher when she attend an interview.
I have created a Java program to demonstrate it.

Eg.
1010 - Valid.
1101 - Not Valid because two 1's are in adjacent  positions.