Courses
Tutorials
Practice
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.5K+ articles
DSA
22.8K+ articles
Misc
8.8K+ articles
Mathematical
7.8K+ articles
Arrays
6.5K+ articles
Competitive Programming
3.3K+ articles
Strings
3.3K+ articles
Greedy
2.1K+ articles
Bit Magic
1.2K+ articles
substring
358+ articles
binary-string
384+ posts
Recent Articles
Popular Articles
Python Program to Subtract Two Binary Numbers
Last Updated: 30 July 2024
We are given two binary numbers, num1 and num2 and we have to subtract these two binary numbers and return the result. In this article, we will see how we can subtract two...
read more
Python
binary-string
Python Programs
python-basics
Picked
Find two numbers whose difference is given as Binary string
Last Updated: 13 December 2023
Given a string S, which contains a certain number of 1s followed by a certain number of 0s. Then your task is to output the binary representation of two integers A and B b...
read more
Bit Magic
binary-string
Geeks Premier League
DSA
Geeks Premier League 2023
Count the number of Binary Strings which have X 1's and Y 0's
Last Updated: 08 December 2023
Given two integers X and Y, the task is to count the number of binary strings which have X 1's and Y 0's and there are no two consecutive 1's in the string.Examples:Input:...
read more
Strings
binary-string
Geeks Premier League
DSA
Geeks Premier League 2023
Find the minimum number of distinct Substrings formed by 0s in Binary String
Last Updated: 05 December 2023
Given two integers N and M, the task is to output the minimum number of different substrings that can be formed using the Binary String of length N having M number of set ...
read more
Mathematical
binary-string
math
Greedy Algorithms
Geeks Premier League
DSA
Geeks Premier League 2023
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
binary-string
Bit Algorithms
DSA
What is Binary String?
Last Updated: 27 November 2023
A binary string is a string that only has two characters, usually the numbers 0 and 1, and it represents a series of binary digits.Binary String Variables:In computer prog...
read more
Strings
binary-string
Picked
DSA
Definitions and Meanings
Find the maximum sum on the basis of the given Binary String
Last Updated: 16 February 2023
Given a binary string str and an array of positive integers profit[]. The task is to find the maximum possible sum if we are allowed to use only the elements whose corresp...
read more
Heap
Technical Scripter
binary-string
Technical Scripter 2022
DSA
Count ways to select three indices from Binary String with different adjacent digits
Last Updated: 14 December 2022
Given a binary string S of length N, the task is to find the number of ways to select three indices such that if they are arranged in increasing order of indices no two ad...
read more
Strings
Technical Scripter
binary-string
prefix-sum
Technical Scripter 2022
DSA
Count ways to form N sized Strings with at most two adjacent different pair
Last Updated: 21 November 2022
Given a value N, the task is to find the number of ways a binary string of size N can be formed such that at most 2 adjacent pairs have different values.Examples:Input: N ...
read more
Strings
Mathematical
Technical Scripter
binary-string
Picked
Technical Scripter 2022
DSA
Maximize sum by picking Array element to left of each '1' of a Binary String
Last Updated: 15 November 2022
Given a binary string S and an array arr[] each of size N, we can pick any element from the Array which is to the left of (or at the same position) the indices of '1's in ...
read more
Arrays
Strings
Technical Scripter
binary-string
priority-queue
Technical Scripter 2022
DSA
Minimize bit flips such that each continuous segment of same bit has even length
Last Updated: 21 September 2023
Given a binary string S of even size that contains only 0s and 1s, the task is to find the minimum flips (that is 0 to 1 or 1 to 0) such that every contiguous subsegment t...
read more
Strings
Greedy
binary-string
DSA
Minimize removal from front or end to make the Binary String at equilibrium
Last Updated: 23 January 2023
Given a binary string S of size N, the task is to find the minimum number of removal required either from the start or end position from the binary strings such that the c...
read more
Strings
binary-string
prefix-sum
DSA
Form binary palindromic String with X 0s and Y 1s
Last Updated: 16 August 2022
Given two integers M and N the task is to construct a binary palindromic string consisting of M occurrences of 0s and N occurrences of 1s.Examples:Input: M = 4, N = 3Outpu...
read more
Strings
Greedy
palindrome
binary-string
DSA
Maximize the Binary String value by replacing A[i]th elements from start or end
Last Updated: 06 September 2022
Given a string S of size M consisting of only zeroes (and hence representing the integer 0). Also, given an array A[] of size N whose, each element is an integer in the ra...
read more
Strings
Greedy
binary-string
DSA
Find Minimum and Maximum distinct persons entering or leaving the room
Last Updated: 09 May 2022
Given a binary string persons where '1' and '0' represent people entering and leaving a room respectively. The task is to find the Minimum and Maximum Distinct Persons ent...
read more
Strings
Greedy
binary-string
DSA
1
2
3
4
...
26
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 !