Tag: Binary Numbers
Teaching Kids Programming: Videos on Data Structures and Algorithms You are given a binary string s that contains at least one ‘1’. You have to rearrange the bits in …
Teaching Kids Programming: Videos on Data Structures and Algorithms We know that 7 and 8 are lucky digits. Also, a number is called lucky if it contains only lucky …
Teaching Kids Programming: Videos on Data Structures and Algorithms A bit flip of a number x is choosing a bit in the binary representation of x and flipping it …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given an integer n, return the decimal value of the binary string formed by concatenating the binary representations of 1 …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given an integer num, return the number of steps to reduce it to zero. In one step, if the current …