Day 10: Binary Numbers | HackerRank Solution
Hello coders, today we are going to solve Day 10: Binary Number HackerRank Solution in C++, Java and Python. Objective Today, we’re working with binary numbers. Task Given a base-10 integer, n, convert it to binary (base-2). Then find and print the base-10 integer denoting the maximum number of consecutive 1‘s in n‘s binary representation. When working with different bases, it is common to show the … Read more