Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Misc
8.8K+ articles
Mathematical
7.8K+ articles
Arrays
6.5K+ articles
Competitive Programming
3.3K+ articles
Greedy
2.1K+ articles
Bit Magic
1.2K+ articles
Bitwise-XOR
443+ articles
setBitCount
127+ articles
Bit Algorithms
57 posts
Recent Articles
Popular Articles
All about Bit Manipulation
Last Updated: 18 April 2023
Bit Manipulation is a technique used in a variety of problems to get the solution in an optimized way. This technique is very effective from a Competitive Programming poin...
read more
Bit Magic
Technical Scripter
Technical Scripter 2020
DSA
Bitwise-XOR
Bit Algorithms
Bitwise-OR
Bitwise-AND
Find array elements with rightmost set bit at the position of the rightmost set bit in K
Last Updated: 26 October 2023
Given an array arr[] consisting of N and an integer K, the task is to print the elements of arr[] whose rightmost set bit is at the same position as the rightmost set bit ...
read more
Bit Magic
Mathematical
Technical Scripter
Technical Scripter 2020
DSA
Arrays
Bit Algorithms
Count numbers in the range [L, R] having only three set bits
Last Updated: 05 July 2024
Given an array arr[] of N pairs, where each array element denotes a query of the form {L, R}, the task is to find the count of numbers in the range [L, R], having only 3-s...
read more
Misc
Bit Magic
Mathematical
DSA
setBitCount
Bit Algorithms
Count of numbers in range [L, R] with LSB as 0 in their Binary representation
Last Updated: 16 July 2021
Given two integers L and R. The task is to find the count of all numbers in the range [L, R] whose Least Significant Bit in binary representation is 0. Examples: Input: L ...
read more
Bit Magic
Mathematical
DSA
Bit Algorithms
Construct lexicographically smallest Binary array of size N with A 0s and X inversion count
Last Updated: 09 November 2021
Given three numbers N, A, and X, the task is to construct the lexicographically smallest binary array of size N, containing A 0s and having an inversion count of X.Example...
read more
Algorithms
DSA
Arrays
inversion
Bit Algorithms
two-pointer-algorithm
lexicographic-ordering
Minimum number of days to debug all programs
Last Updated: 21 October 2021
Given N program codes and their respective debugging times in an array codeTime and an integer WorkingSessionTime, the ith program takes codeTime[i] hours to finish. Worki...
read more
Bit Magic
Dynamic Programming
Mathematical
Blogathon
Blogathon-2021
DSA
Arrays
Bit Algorithms
Count of subsets having maximum possible XOR value
Last Updated: 17 January 2022
Given an array arr[] consisting of N positive integers. The task is to count the number of different non-empty subsets of arr[] having maximum bitwise XOR.Examples:Input: ...
read more
Misc
Bit Magic
Mathematical
DSA
Arrays
subset
Bitwise-XOR
Bit Algorithms
Find a number X such that XOR of given Array after adding X to each element is 0
Last Updated: 17 December 2021
Given an array arr[] of odd length N containing positive integers. The task is to find a positive integer X such that, adding X to all the elements of arr[] and then takin...
read more
Bit Magic
Mathematical
Competitive Programming
DSA
Arrays
Bitwise-XOR
Bit Algorithms
Introduction to Bitwise Algorithms - Data Structures and Algorithms Tutorial
Last Updated: 27 November 2024
Bit stands for binary digit. A bit is the basic unit of information and can only have one of two possible values that is 0 or 1. In our world, we usually with numbers usin...
read more
Bit Magic
Algorithms
DSA
setBitCount
Bitwise-XOR
CPP-bitset
Bit Algorithms
Bitwise-OR
Bitwise-AND
Tutorials
DSA-Blogs
DSA Tutorials
Maximize Bitwise AND product function
Last Updated: 26 September 2023
Given two non-negative integers A and B find the smallest non-negative integer m such that the product of (A m) and(B m) is maximized.Examples:Input: A = 5, B = 10Output...
read more
Bit Magic
DSA
Bit Algorithms
Minimizing Binary statements: Transforming a Binary String to all Zeroes
Last Updated: 07 November 2023
Given a set of N binary statements represented by a string S, where '1' represents a true statement and '0' represents a false one. You can perform the following operation...
read more
Strings
Bit Magic
Competitive Programming
DSA
binary-string
Bit Algorithms
XOR Graph Minimum Spanning Tree
Last Updated: 12 January 2024
Given a complete weighted graph where edges have weights determined by the bitwise-xor operation. The graph has N vertices numbered from 0 to N-1, and each undirected edge...
read more
Bit Magic
Competitive Programming
Picked
Geeks Premier League
DSA
Algorithms-Bit Algorithms
Bit Algorithms
Geeks Premier League 2023
Bitwise Algorithm in Python
Last Updated: 18 April 2024
Bitwise algorithms refer to the use of bitwise operators to manipulate individual bits of data. Python provides a set of bitwise operators such as AND (), OR (|), XOR (^),...
read more
Bit Magic
Algorithms
Picked
DSA
Bit Algorithms
Python-DSA
Smallest subarray such that its bitwise OR is at least k
Last Updated: 12 May 2024
Given an array arr[] of non-negative integers and an integer k. The task is to find the smallest non-empty subarray of arr[] such that the bitwise OR of all of its element...
read more
DSA
Arrays
sliding-window
Bit Algorithms
Assign Campus Bikes to Workers II
Last Updated: 11 June 2024
On a 2D grid representing a campus, there are n workers and m bikes, with 1 = n = m = 10. Each worker and bike is assigned a 2D coordinate on this grid. The tasks is to as...
read more
Dynamic Programming
Picked
DSA
Arrays
Google
Bit Algorithms
1
2
3
4
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !