Find the number of islands Vrushabh ShetSeptember 02, 2020 Given a grid consisting of '0's(Water) and '1's(Land). Find the number of islands. Note: An island is surrounded by water...Read More
No. of 1 Bits Vrushabh ShetAugust 17, 2020Given a positive integer N, print count of set bits in it. Example 1: Input: N = 6 Output: 2 Explanation: Binary representation is ...Read More
Pairs with given XOR Vrushabh ShetAugust 13, 2020 Given an array A[] of size N of distinct positive integers and a number X , find the number of pairs of integers in the array w...Read More
permutation greater than that number Vrushabh ShetJune 17, 2020Count natural numbers whose all permutation are greater than that number Examples: Input : n = 15. Output : 14 Explanation: 1, 2, 3, 4, 5, 6...Read More
Rotated digits Vrushabh ShetMarch 14, 2020x is a good number if after rotating each digit individually by 180 degrees, we get a valid number that is different from x . Each digit m...Read More
Subarray with given XOR Vrushabh ShetOctober 08, 2019 Given an array A[] of size N of distinct positive integers and a number X , find the number of pairs of integers in the array...Read More