Skip to content
Tutorials
Python Tutorial
Taking Input in Python
Python Operators
Python Data Types
Python Numbers
Python String
Python Lists
Python Tuples
Sets in Python
Python Dictionary
Python Loops and Control Flow
Python If Else
Python For Loops
Python While Loops
Python Breaks
Python Continue Statement
Python Pass Statement
Python Functions
Python OOPS Concept
Python Data Structures
Python DSA
Linked List
Stack
Queue
Tree
Heap
Hashing
Graph
Sets
Map
Advance Data Structure
Sorting Algorithms
Searching Algorithms
Python Exception Handling
Python File Handling
Python Exercises
Python List Exercise
Python String Exercise
Python Tuple Exercise
Python Dictionary Exercise
Python Set Exercise
Python Design Patterns
Python Programming Examples
Python Practice Questions
Java
Java Programming Language
Java Tutorial
Data Types
Variables
Operators
Operators in Java
Arithmetic Operators
Unary Operators
Assignment Operators
Relational Operators
Logical Operators
Ternary Operators
Flow Control in Java
Flow Control
if Statement
if-else Statement
if-else-if Ladder
Continue Statement
Break Statement
Return Statement
Loops in Java
Loops
do-while Loop
For Loop
For-each Loop
Methods
Strings
Arrays
OOPs Concepts
OOPs Concepts
Classes and Objects
Access Modifiers
Inheritance
Abstraction
Encapsulation
Polymorphism
Interface
Packages
Multithreading
File Handling
Regular Expression
Java Collections
Java Collections
Collection Class
List Interface
ArrayList
Vector Class
Stack Class
LinkedList Class
Queue Interface
Set Interface
HashSet Class
TreeSet
Map Interface
HashMap Class
HashTable Class
Iterator
Comparator
Collection Interview Questions
Java 8 Tutorial
Java Programs
Java Programming Examples
Java Array Programs
Java String Programs
Java Date-Time Programs
Java File Handling Programs
Java Collection Programs
Java JDBC Programs
Java Apache POI Programs
Java OpenCV Programs
Java Interview Questions
Java Interview Questions
Core Java Interview Questions-Freshers
Java Multithreading Interview Questions
OOPs Interview Questions and Answers
Java Exercises
Java Quiz
Java Quiz
Core Java MCQ
Java Projects
Advance Java
Spring Tutorial
Spring Boot Tutorial
Spring Boot Interview Questions
Spring MVC Tutorial
Spring MVC Interview Questions
Hibernate Tutorial
Hibernate Interview Questions
Programming Languages
C
C++
JavaScript
PHP
R Tutorial
C#
SQL
Scala
Perl
Go Language
Kotlin
System Design
System Design Tutorial
What is System Design
Key Terminologies in System Design
Analysis and Architecture of Systems
Scalability in System Design
Databases in System Design
High Level Design or HLD
Low Level Design or LLD
Communication Protocols
Web Servers and Proxies
Case Studies in Designing Systems
Complete System Design Tutorial
Software Design Patterns
Factory Pattern
Observer Pattern
Singleton Design Pattern
Decorator Pattern
Strategy Pattern
Adapter Pattern
Command Pattern
Iterator Pattern
Prototype Design Pattern
All Design Patterns
System Design Roadmap
Top 10 System Design Interview Questions and Answers
Interview Corner
Company Preparation
Top Topics
Practice Company Questions
Interview Experiences
Experienced Interviews
Internship Interviews
Competitive Programming
Multiple Choice Quizzes
Aptitude for Placements
Computer Science Subjects
Mathematics
Operating System
DBMS
Computer Networks
Computer Organization and Architecture
Theory of Computation
Compiler Design
Digital Logic
Software Engineering
DevOps
GIT
AWS
Docker
Kubernetes
Microsoft Azure Tutorial
Google Cloud Platform
Linux
Linux Tutorial
Linux Commands A-Z
Linux Commands Cheatsheet
25 Basic Linux Commands
File Mangement in Linux
File Permission Commands
chmod Command
chown Command
chgrp Command
unmask Command
Linux System Administration
Linux File System
Linux Shell Scripting
Linux Networking
Linux Firewall
Linux Interview Questions
Software Testing
Software Testing Tutorial
Software Testing Tutorial
What is Software Testing
Principles of Software Testing
Types of Software Testing
Levels of Software Testing
Automation Testing
Manual Testing
Testing Tools
Software Testing Tools
Defect Testing Tools
Cross-Browser Testing Tools
Integration Testing Tool
Unit Testing Tools
Mobile Testing Tools
GUI Testing Tool
Security Testing Tools
Penetration Testing Tools
Selenium
Selenium Tutorial
Selenium Basics
Selenium Python
Jira
Jira Tutorial
JIRA Installation
JIRA Login
JIRA Dashboard
Software Engineering
Software Engineering Tutorial
Software Development Life Cycle (SDLC)
Software Characteristics
Software Quality
Waterfall Model
Iterative Waterfall Model
Spiral Model
Prototyping Model
Incremental Process Model
Interview Questions
Software Testing Interview Questions
Automation Testing Interview Questions
Manual Testing Interview Questions
Software Engineering Interview Questions
Penetration Testing Interview Questions
API Testing Interview Questions
Postman
Postman Tutorial
Postman for API Development
Download and Install Postman
API Testing Using Postman
Generate HTML Report for Postman
Databases
DBMS Tutorial
SQL Tutorial
PostgreSQL Tutorial
MongoDB Tutorial
SQL Interview Questions
MySQL Interview Questions
PL/SQL Interview Questions
Android
Android Tutorial
Android Studio Tutorial
Kotlin For Android
Android Projects
Android Interview Questions
6 Weeks of Android App Development
Excel
MS Excel Tutorial
Introduction to MS Excel
Data Analysis in Excel
Basic Excel Formulas & Functions
Data Analysis in Advanced Excel
Workbooks
Statistical Functions
Data Visualization in Excel
Pivot Tables in Excel
Excel Spreadsheets in Python
Basic Excel Shortcuts
Mathematics
Number System
Algebra
Linear Algebra
Trigonometry
Set Theory
Statistics
Probability
Geometry
Mensuration
Logarithms
Calculus
Commerce
Business Studies
Accountancy
Microeconomics
Statistics for Economics
Macroeconomics
Human Resource Management (HRM)
Management
Income Tax
Finance
Commerce Complete Guide
SEO-Search Engine Optimization
What is SEO
Search Engine Optimization Basics
Types of SEO
Keyword Optimization in SEO
Backlinks in SEO
SEO Blogs
Mobile SEO
SEO Complete Reference
Aptitude
Aptitude Question and Answers
Quantitative Aptitude
Logical Reasoning
Verbal Ability
DSA
Data Structures
Arrays
Matrix
Strings
Linked List
Singly Linked List
Doubly Linked List
Circular Linked List
Doubly Circular Linked List
Linked List Tutorial
Stack
Queue
Tree
Generic Tree
Binary Tree
Binary Search Tree
AVL Tree
B Tree
B+ Tree
Red Black Tree
Tree Data Structure Tutorial
Heap
Hashing
Graph
Set Data Structure
Map Data Structure
Advanced Data Structure
Data Structures Tutorial
Algorithms
Analysis of Algorithms
Design and Analysis of Algorithms
Asymptotic Analysis
Asymptotic Notations
Worst, Average and Best Cases
Searching Algorithms
Linear Search
Binary Search
Searching Algorithms Tutorial
Sorting Algorithms
Selection Sort
Bubble Sort
Insertion Sort
Merge Sort
Quick Sort
Heap Sort
Counting Sort
Radix Sort
Bucket Sort
Sorting Algorithms Tutorial
Greedy Algorithms
Dynamic Programming
Graph Algorithms
Pattern Searching
Recursion
Backtracking
Divide and Conquer
Mathematical Algorithms
Geometric Algorithms
Bitwise Algorithms
Randomized Algorithms
Branch and Bound
Algorithms Tutorial
DSA Tutorial
Practice
All DSA Problems
Problem of the Day
Company Wise Coding Practice
Amazon
Microsoft
Flipkart
Explore All
GfG SDE Sheet
Practice Problems Difficulty Wise
School
Basic
Easy
Medium
Hard
Language Wise Coding Practice
CPP
Java
Python
Curated DSA Lists
Beginner's DSA Sheet
Top 50 Array Problems
Top 50 String Problems
Top 50 DP Problems
Top 50 Graph Problems
Top 50 Tree Problems
Competitive Programming
Company Wise SDE Sheets
Facebook SDE Sheet
Amazon SDE Sheet
Apple SDE Sheet
Netflix SDE Sheet
Google SDE Sheet
DSA Cheat Sheets
SDE Sheet
DSA Sheet for Beginners
FAANG Coding Sheet
Product-Based Coding Sheet
Company-Wise Preparation Sheet
Top Interview Questions
Top 100 DSA Interview Questions Topic-wise
Puzzles
All Puzzles
Top 100 Puzzles Asked In Interviews
Top 20 Puzzles Commonly Asked During SDE Interviews
Data Science
Python Tutorial
R Tutorial
Machine Learning
Data Science using Python
Data Science using R
Data Science Packages
Pandas Tutorial
NumPy Tutorial
Data Visualization
Python Data Visualization Tutorial
Data Visualization with R
Data Analysis
Data Analysis with Python
Data Analysis with R
Deep Learning
NLP Tutorial
Web Tech
HTML Tutorial
CSS Tutorial
JavaScript Tutorial
PHP Tutorial
ReactJS Tutorial
NodeJS Tutorial
AngularJS Tutorial
Bootstrap Tutorial
Web Development Using Python
Django
Getting started with Django
Create an App in Django
Views In Django
Django Templates
Django URL patterns
Django Admin Interface
Django Models
MySQL Databased with Django
Django CRUD
Django Forms
Django Static File
Projects for Beginners
Django Tutorial
Flask
Web Development Using Flask
Flask App Routing
URL building in Flask
Flask Templates
Templating With Jinja2 in Flask
Flask Model
Database with Flask SQL Alchemy
Authentication with Flask
WTForms in Flask
Static files in Flask
Python Flask Projects
Flask Interview Questions
Frontend Projects
Building a Survey Form using HTML and CSS
Food delivery system using HTML and CSS
ToDo webapp using Django
Building Blog CMS
Add Pagination in Django
Tailwind CSS with Django
Django with Reactjs
Postman
Github
JSON Tutorial
TypeScript Tutorial
Wordpress Tutorial
Web Design
Web Browsers
Google Chrome
Mozilla Firefox
Apple Safari
Microsoft Edge
Tor
Cheat Sheets
HTML Cheat Sheet
CSS Cheat Sheet
JavaScript Cheat Sheet
React Cheat Sheet
Angular Cheat Sheet
jQuery Cheat Sheet
Bootstrap Cheat Sheet
JavaScript Projects
Learn Complete Web Development
File Formats
Courses
Coding for Everyone
DSA to Development
Machine Learning and Data Science
DSA Courses
Data Structure & Algorithm(C++/JAVA)
Data Structure & Algorithm(Python)
Data Structure & Algorithm(JavaScript)
Programming Languages
CPP
Java
Python
JavaScript
C
Trending Now
DSA
Web Tech
Foundational Courses
Data Science
Practice Problem
Python
Machine Learning
JavaScript
System Design
Django
DevOps Tutorial
Java
C
C++
ReactJS
NodeJS
CP Live
Aptitude
Puzzles
Projects
▲
Similar Topics
DSA
22k+ articles
Mathematical
7.7k+ articles
Arrays
6.3k+ articles
Strings
3.2k+ articles
Competitive Programming
2.2k+ articles
Algorithms
2k+ articles
Bitwise-XOR
430+ articles
Bitwise-AND
130+ articles
setBitCount
110+ articles
Bitwise-OR
110+ articles
DSA
>
Algorithms
>
Bit Magic
Bit Magic
1.1k+ posts
Popular Articles
Recent Articles
Maximum XOR pair product with a given value
Last Updated: 22 August 2023
Given a positive integer value V, the task is to find the maximum XOR of two numbers such that their product is equal to the given value V.E
...read more
Bit Magic
Bitwise-XOR
DSA
Find the largest palindrome XOR integer smaller than n
Last Updated: 22 August 2023
Given an integer n, you need to find the largest integer m (m n) such that m XOR n is a palindrome. If there is no such integer, return -1.
...read more
Bit Magic
Mathematical
Bitwise-XOR
DSA
Find (a^b)%m where 'a' 'b' and 'c' is very large number
Last Updated: 08 March 2024
Given three numbers a, b, and m where10^9 ≤ a, b ≤ 10^9. Given very large ‘m’ containing 10^18+7 and m is a prime number, the task i
...read more
Bit Magic
DSA
Similar Topics
DSA
22k+ articles
Mathematical
7.7k+ articles
Arrays
6.3k+ articles
Strings
3.2k+ articles
Competitive Programming
2.2k+ articles
Algorithms
2k+ articles
Bitwise-XOR
430+ articles
Bitwise-AND
130+ articles
setBitCount
110+ articles
Bitwise-OR
110+ articles
Find last element in Array formed from bitwise AND of array elements
Last Updated: 29 September 2022
Given an array A[] of size N, the task is to find the last remaining element in a new array B containing all pairwise bitwise AND of element
...read more
Arrays
Bit Magic
Bitwise-OR
Bitwise-AND
DSA
Count pair of nodes with greater Bitwise AND than Bitwise XOR in given Linked List
Last Updated: 18 April 2023
Given a singly linked list, the task is to Count the pairs of nodes with greater Bitwise AND than Bitwise XOR.Examples:Input: list: 1-4-2-6-
...read more
Linked List
Bit Magic
Hash
Bitwise-XOR
Java-HashMap
Bitwise-AND
DSA
Count of Arrays of size N with elements in range [0, (2^K)-1] having maximum sum & bitwise AND 0
Last Updated: 16 June 2022
Given two integers N and K, The task is to find the count of all possible arrays of size N with maximum sum bitwise AND of all elements as
...read more
Arrays
Bit Magic
Analysis of Algorithms
Mathematical
C++ Programs
Bitwise-AND
Maths
DSA
Count set bits in index range [L, R] in given Array for Q queries
Last Updated: 14 December 2021
Given an array arr[] containing N integers and an array queries[] containing Q queries in the form of {L, R}, the task is to count the total
...read more
Arrays
Bit Magic
setBitCount
Sorting
Mathematical
Heap
Matrix
array-range-queries
DSA
Find maximum product of Bitwise AND and Bitwise OR of K-size subarray
Last Updated: 21 March 2023
Given an array arr[] containing N integers and an integer K, the task is to find the maximum value of the product of Bitwise AND and Bitwise
...read more
Arrays
Bit Magic
Mathematical
Competitive Programming
subarray
sliding-window
DSA
Maximize 0s to be flipped in given Binary array such that there are at least K 0s between two 1s
Last Updated: 15 December 2021
Given a binary array arr[] and an integer K, the task is to count the maximum number of 0's that can be flipped to 1's such that there are a
...read more
Strings
Bit Magic
Mathematical
DSA
Average value of set bit count in given Binary string after performing all possible choices of K operations
Last Updated: 04 August 2022
Given a positive integer N and an array arr[] consisting of K integers and consider a binary string(say S) having N set bits, the task is to
...read more
Strings
Bit Magic
setBitCount
Greedy
Mathematical
binary-string
Blogathon
Blogathon-2021
DSA
Minimum number that can be obtained by applying '+' and '*' operations on array elements
Last Updated: 04 August 2021
Given an array arr[] consisting of N positive integers and a string S of length (N - 1), containing characters '+' and '*', the task is to f
...read more
Arrays
Strings
Bit Magic
Greedy
Mathematical
deque
DSA
Check if Bitwise AND of concatenation of diagonals exceeds that of middle row/column elements of a Binary Matrix
Last Updated: 27 February 2023
Given a binary matrix mat[][] of dimensions N * N, the task is to check if Bitwise AND of the decimal numbers obtained by concatenating prim
...read more
Bit Magic
setBitCount
Mathematical
Matrix
Bitwise-AND
DSA
Sum of Bitwise OR of every array element paired with all other array elements
Last Updated: 15 November 2021
Given an array arr[] consisting of non-negative integers, the task for each array element arr[i] is to print the sum of Bitwise OR of all pa
...read more
Arrays
Bit Magic
Technical Scripter
Bit Algorithms
Bitwise-OR
Technical Scripter 2020
DSA
Maximum set bit count from pairs of integers from 0 to N that yields a sum as N
Last Updated: 10 May 2021
Given an integer N, the task is to find the maximum frequency of set bits among all pairs of integers from 0 to N that yields a sum as N.Exa
...read more
Arrays
Bit Magic
setBitCount
Algorithms
Mathematical
Hash
binary-representation
DSA
Check whether bits are in alternate pattern in the given range | Set-2
Last Updated: 07 December 2023
Given a non-negative number[Tex]N[/Tex]and two values[Tex]L[/Tex]and[Tex]R[/Tex]. The problem is to check whether or not N has an alternate
...read more
Bit Magic
setBitCount
Bit Algorithms
DSA
First
67
68
69
70
71
72
73
74
>>
Last
First
68
69
70
71
72
73
>>
Last
First
69
70
71
72
>>
Last
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 !