Binary String
A Binary String is a special kind of string made up of only two types of characters, such as 0 and 1.
For Example:
Input: str = "01010101010"
Output: Yes, it is a Binary String
Input: str = "geeks101"
Output: No, it is not a Binary String
Contact Us