Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.4K+ articles
Misc
7.7K+ articles
Mathematical
5.1K+ articles
Strings
2.1K+ articles
Greedy
1.4K+ articles
GATE CS
1.1K+ articles
Numbers
327+ articles
Digital Logic
302+ articles
divisors
147+ articles
counter
9 posts
Recent Articles
Minimum number of chairs required to ensure that every worker is seated at any instant
Last Updated: 23 July 2025
Given a string S representing the record of workers entering and leaving the rest area, where E represents entering and L represents leaving the rest area. For each worker...
read more
Strings
Mathematical
DSA
counter
Check if two binary strings can be made equal by swapping 1s occurring before 0s
Last Updated: 23 July 2025
Given two binary strings str1 and str2 having same length, the task is to find if it is possible to make the two binary strings str1 and str2 equal by swapping all 1s occu...
read more
Strings
Searching
Technical Scripter
DSA
binary-string
counter
Count array elements exceeding all previous elements as well as the next array element
Last Updated: 23 July 2025
Given an array arr[], the task is to find the count of array elements satisfying the following conditions:The array elements should be strictly greater than all the previo...
read more
DSA
counter
Count array elements whose all distinct digits appear in K
Last Updated: 23 July 2025
Given an array arr[] consisting of N positive integers and a positive integer K, the task is to find the count of array elements whose distinct digits are a subset of the ...
read more
DSA
number-digits
HashSet
counter
Count subarrays of atleast size 3 forming a Geometric Progression (GP)
Last Updated: 15 July 2025
Given an array arr[] of N integers, the task is to find the count of all subarrays from the given array of at least size 3 forming a Geometric Progression.Examples:Input: ...
read more
Searching
Mathematical
DSA
Arrays
subarray
counter
Progressions
Geometric Progression
Count possible values of K such that X - 1 and Y - 1 modulo K is same
Last Updated: 13 September 2021
Given two numbers X and Y, the task is to find the count of integers K which satisfies the equation (X - 1) % K = (Y - 1) % K.Examples:Input: X = 2, Y = 6Output: 3Explanat...
read more
Misc
Greedy
Mathematical
DSA
counter
divisors
Count of Ordered Pairs (X, Y) satisfying the Equation 1/X + 1/Y = 1/N
Last Updated: 08 May 2023
Given a positive integer N, the task is to find the number of ordered pairs (X, Y) where both X and Y are positive integers, such that they satisfy the equation 1/X + 1/Y ...
read more
DSA
counter
Numbers
Ripple Counter in Digital Logic
Last Updated: 26 November 2025
A ripple counter is an asynchronous counter made by cascading flip-flops, where the output of one flip-flop drives the clock of the next. Only the first flip-flop receives...
read more
Misc
GATE CS
Digital Logic
counter
Counters in Digital Logic
Last Updated: 14 January 2026
A counter is a digital electronic device that counts the number of times an event occurs using a clock signal. With each clock pulse, the count changes, such as in an up c...
read more
Digital Logic
counter