## Queries to find the count of integers in a range that contain the given pattern

Given a binary pattern patt and Q queries where each query consists of a range [L, R], for every query the task is to find… Read More »

- Minimum number of Fibonacci jumps to reach end
- Maze With N doors and 1 Key
- Highest power of 2 that divides a number represented in binary
- Find row with maximum and minimum number of zeroes in given Matrix
- Maximum length sub-array which satisfies the given conditions
- Minimizing array sum by applying XOR operation on all elements of the array
- Find if a binary matrix exists with given row and column sums
- XOR in a range of a binary array
- Distinct adjacent elements in a binary array
- Largest sub-matrix with all equal elements
- Check if all elements of binary array can be made 1
- Number of 0s and 1s at prime positions in the given array
- Minimum length subarray of 1s in a Binary Array
- Find the occurrence of the given binary pattern in the binary representation of the array elements
- Minimum sum of array elements based on given Criteria
- Find the maximum possible Binary Number from given string
- Find next greater element with no consecutive 1 in it's binary representation
- Smallest number greater or equals to N such that it has no odd positioned bit set
- Maximum elements which can be crossed using given units of a and b
- Queries to find the count of integers in a range that contain the given pattern
- Maximum distance between two 1's in Binary representation of N
- Number of ways to erase exactly one element in the Binary Array to make XOR zero

Given a binary pattern patt and Q queries where each query consists of a range [L, R], for every query the task is to find… Read More »

Given Q queries where each query consists of an integer N and the task is to find the smallest integer greater than N such that… Read More »

Given a binary array of 0’s and 1’s, the task is to find the number of ways to erase exactly one element from this array… Read More »

Given a number N, the task is to find the maximum distance between two 1’s in the binary representation of given N. Print -1 if… Read More »

Given a binary matrix of size N * M, the task is to find the largest area sub-matrix such that all elements in it are… Read More »

Given a binary array Arr and an integer K. If the value at index i is 1 you can change 0 to 1 with in… Read More »

Given a string str consisting of the characters from the set {‘o’, ‘n’, ‘e’, ‘z’, ‘r’}, the task is to to find the largest possible… Read More »

Given an array arr[] of N positive integers and a string patt which consist of characters from the set {0, 1}, the task is to… Read More »

Given an N * N binary maze where a 0 denotes that the position can be visited and a 1 denotes that the position cannot… Read More »

Given an array of 0s and 1s, If any particular index i has value 1 then it is a safe index and if the value… Read More »

Given an array A[] of size N with entries as integers, some of the entries are -1. The task is to replace -1’s with numbers… Read More »

Given a binary array arr[] of size N and some queries. Each query represents an index range [l, r]. The task is to find the… Read More »

Given a binary array arr[], the task is to find the length of the longest sub-array of the given array such that if the sub-array… Read More »

Given a binary array arr[] of 1’s and 0’s of length N. The task is to find the number of elements which are different with… Read More »

Given an integer N, the task is to find the smallest integer X such that it has no odd position set and X ≥ N.… Read More »