Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
DSA
22.4k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
Strings
3.2k+ articles
Competitive Programming
2.3k+ articles
Greedy
2k+ articles
Algorithms
2k+ articles
Matrix
1.2k+ articles
Bit Magic
1.2k+ articles
setBitCount
110+ articles
binary-representation
140+ posts
Popular Articles
Recent Articles
Largest Prime Number possible from a subsequence of a Binary String
Last Updated: 01 February 2023
Given a Binary string, the task is to find the largest Prime Number possible by the decimal representation of a subsequence of the given bin
...read more
Strings
Bit Magic
Algorithms
Mathematical
subsequence
binary-string
binary-representation
Prime Number
Data Structures
DSA
Check if a number is binary or not in Java
Last Updated: 11 September 2023
Given a number N, the task is to check first whether the given number is binary or not and its value should be greater than 1. print true if
...read more
Pattern Searching
Mathematical
binary-representation
Java Programs
java-regular-expression
regular-expression
DSA
C program to count zeros and ones in binary representation of a number
Last Updated: 22 December 2022
Given a number N, the task is to write C program to count the number of 0s and 1s in the binary representation of N.Examples:Input: N = 5Out
...read more
Bit Magic
setBitCount
binary-representation
School Programming
base-conversion
C Programs
DSA
Similar Topics
DSA
22.4k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
Strings
3.2k+ articles
Competitive Programming
2.3k+ articles
Greedy
2k+ articles
Algorithms
2k+ articles
Matrix
1.2k+ articles
Bit Magic
1.2k+ articles
setBitCount
110+ articles
Binary Representations in Digital Logic
Last Updated: 08 April 2025
Binary representation is the method of expressing numbers using binary digits (bits). In digital logic, binary representations are important
...read more
binary-representation
GATE CS
School Programming
Picked
Digital Logic
IEEE Standard 754 Floating Point Numbers
Last Updated: 16 March 2020
The IEEE Standard for Floating-Point Arithmetic (IEEE 754) is a technical standard for floating-point computation which was established in 1
...read more
binary-representation
Computer Organization & Architecture
Digital Logic
Program for Decimal to Binary Conversion
Last Updated: 04 February 2025
Given a decimal number n, the task is to convert the given decimal number into an equivalent binary number.Examples: Input: n = 12Output: "
...read more
MAQ Software
Mathematical
binary-representation
GATE CS
Computer Organization & Architecture
base-conversion
Digital Logic
DSA
Program for Binary To Decimal Conversion
Last Updated: 08 March 2025
Given a binary number as input, we need to write a program to convert the given binary number into an equivalent decimal number.Examples :In
...read more
Adobe
Mathematical
binary-representation
GATE CS
Computer Organization & Architecture
base-conversion
Digital Logic
DSA
Program to convert a binary number to hexadecimal number
Last Updated: 02 August 2024
Given a Binary Number, the task is to convert the given binary number to its equivalent hexadecimal number. The input could be very large an
...read more
Mathematical
binary-representation
base-conversion
DSA
Convert Binary fraction to Decimal
Last Updated: 13 September 2023
Given an string of binary number n. Convert binary fractional n into it's decimal equivalent.Examples:Input: n = 110.101Output: 6.625Input:
...read more
Strings
Mathematical
number-digits
binary-representation
TCS
Fraction
DSA
Convert decimal fraction to binary number
Last Updated: 07 April 2025
Given a fraction decimal number n and integer k, convert decimal number n into equivalent binary number up-to k precision after decimal poin
...read more
Strings
Bit Magic
binary-representation
Fraction
DSA
Find longest sequence of 1's in binary representation with one flip
Last Updated: 31 October 2023
Give an integer n. We can flip exactly one bit. Write code to find the length of the longest sequence of 1 s you could create.Examples:Input
...read more
Bit Magic
binary-representation
DSA
Gray to Binary and Binary to Gray conversion
Last Updated: 03 February 2025
Binary Number is the default way to store numbers, but in many applications, binary numbers are difficult to use and a variety of binary num
...read more
Bit Magic
Mathematical
binary-representation
Bitwise-XOR
gray-code
DSA
1's and 2's complement of a Binary Number
Last Updated: 20 March 2025
Given a binary number s represented as a string. The task is to return its 1's complement and 2's complement in form of an array as [onesCom
...read more
Arrays
Strings
Bit Magic
Amazon
binary-representation
complement
DSA
Check if binary representation of a number is palindrome
Last Updated: 23 February 2025
Given an integer x, determine whether its binary representation is a palindrome. Return true if it is a palindrome; otherwise, return false.
...read more
Bit Magic
Microsoft
Amazon
Mathematical
binary-representation
DSA
Add two bit strings
Last Updated: 26 April 2025
Given two binary stringss1ands2consisting of only 0s and 1s. Find the resultant string after adding the two Binary Strings.Note:The input st
...read more
Bit Magic
binary-string
binary-representation
Bitwise-XOR
DSA
1
2
3
4
5
6
7
8
>>
Last
1
2
3
4
5
6
>>
Last
1
2
3
4
>>
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 !