22. Check Binary Palindrome
Lesson 23 of 31 in Coddy's 30 Days of Logic Building in C++ course.
Challenge
EasyWrite a function to check if a binary representation of a number is a palindrome.
- Input: 9 (Binary: 1001)
- Output: true
Try it yourself
bool isBinaryPalindrome(int num) {
// Write code here
}All lessons in 30 Days of Logic Building in C++
1Introduction
Introduction