Company: Rapidue
Difficulty: medium
32. Check Binary Coding UNSOLVED Problem Statement Write a program to check whether the given number is in binary format or not. Print "true" or "false". For example, 1011 is binary but 1013 is not. Input Format A single line containing the string S. Constraints 1<S.length<1000 Output Format A string containing "true" or "false" based on the problem statement. Sample Test Cases Sample Input 1 0000 Sample Output 1 true Sample Input 2 11112 Sample Output 2 false Execution Time Limit 4 seconds