# Tag Archives: BIT

Given a date and an array of integer containing the numbers of the cars traveling on that date(an integer), the task is to calculate the… Read More
Given two unsigned integers (maximum possible input can be of 32 bits). The task is to add two numbers using bit operations.  Examples:   Input: n1… Read More
Given a positive integer N, find out how many positive integers strictly less than N have the same number of set bits as N. Examples:  … Read More
Given an array and an integer k, count all inversions in all subarrays of size k. Example:  Input : a[] = {7, 3, 2, 4,… Read More
We have an array A of n integers that we’re planning on sorting. Specifically, we want to know how close the array is to sorted.… Read More
Given an array of integers with limited range (0 to 1000000). We need to implement an Order statistic tree using fenwick tree. It should support four… Read More
Given two numbers m and n. Find the position of the rightmost different bit in the binary representation of numbers. It is guaranteed that such… Read More
Given a string S, and two types of queries.  Type 1: 1 L x, Indicates update Lth index of string S by x character. Type… Read More
In this post, we will discuss Important top 10 algorithms and data structures for competitive coding. Topics :  Graph algorithms Dynamic programming Searching and… Read More