Given an integer array arr. You have to sort the integers in the array in ascending order by the number of 1’s in their binary representation and in case of two...
Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands ho...