Binary Numbers - HackerRank

Problem: https://www.hackerrank.com/challenges/30-binary-numbers The requirement is to convert an integer and convert to a binary number format where we can get the maximum length of number of 1's. So this is how I approached the problem: Convert the integer input into binary format using bin() python built-in function. Since we get an output type of string input for binary input, we need to slice…