Print all the leaf nodes of Binary Heap
Given an array of N elements which denotes the array representation of binary heap, the task is to find the leaf nodes of this binary… Read More »
Given an array of N elements which denotes the array representation of binary heap, the task is to find the leaf nodes of this binary… Read More »
Given an array of N elements, the task is to find the minimum value of K such that Bitwise XOR of K with all array… Read More »
Given an array arr[] of length N, the task is to print the number of array elements that cannot form a pair with any other… Read More »
Given an array arr[] of N positive elements, the task is to find the maximum bitwise OR value of a pair from the given array.Examples:… Read More »
Given an integer N, the task is to print the number of binary strings of length N which at least one ‘1’. Examples: Input: 2… Read More »
Given a positive integer N, the task is to check whether the binary equivalent of that integer ends with a given string str or not. Print… Read More »
Given an array arr[] of N positive integers. The task is to find the number of pairs whose Bitwise AND value is a power of… Read More »
Given two integers N and M, the task is to print all elements in the range [N, M] having at least one odd divisor. Examples:… Read More »
Binary Coded Decimal, or BCD, is another process for converting decimal numbers into their binary equivalents. It is a form of binary encoding where each… Read More »
Given string str that represents a number. The task is to find all possible ways to split the given string such that each segment is… Read More »
Given two integers N and K, the task is to find the number of binary strings of length N having an even number of 1’s… Read More »
Given a binary string str of size N and a positive integer K, the task is to find the minimum number of flips required to… Read More »
Given N lists of strings, the task is to find the count of lists which are not a sublist of any other given lists. Examples:… Read More »
Given an integer N, the task is to find the total number of bits toggled to obtain all numbers from 0 to N sequentially.Examples: Input:… Read More »
Given Bitwise AND, OR, and XOR of N elements of an array denoted by a, b, c. The task is to find the elements of… Read More »