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
Arrays
4.2K+ articles
Greedy
1.4K+ articles
Searching
1.0K+ articles
Bit Magic
821+ articles
number-digits
612+ articles
maths-log
27+ articles
maths-power
181+ posts
Recent Articles
Popular Articles
How to solve undefined reference to `pow' in C language?
Last Updated: 23 July 2025
When compiling a C program that uses the pow function, you might encounter the following error message:undefined reference to `pow'Why Does undefined reference to `pow' er...
read more
C Language
maths-power
Find operations for Array Divisibility by Power of 2
Last Updated: 26 April 2023
Given an array of size n, the task is to find the minimum number of operations required in the array such that the product of all array elements is divisible by nth power ...
read more
Sorting
DSA
Arrays
divisibility
Arrays
maths-power
Check if there exists some positive integers X and Y such that P^X is equal to Q^Y
Last Updated: 19 October 2022
Given two integers P and Q, the task is to check whether a pair (P, Q) is equal or not, and a pair is said to be equal if there exist some positive integers X and Y such t...
read more
Mathematical
DSA
maths-power
Minimize steps to create given Array by adding powers of 2
Last Updated: 23 July 2025
Given an array A[] having N positive integers, the task is to find the minimum number of steps to build this array from an initial array of size N having all 0s following ...
read more
DSA
maths-power
Maximum number of times N can be divided by distinct powers of prime integers
Last Updated: 23 July 2025
Given an integer N, the task is to calculate the maximum number of times N can be divided by an integer K, where K is a power of a prime integer and the value of K is alwa...
read more
Misc
Greedy
Mathematical
DSA
Prime Number
maths-power
Compare given two powers of 10
Last Updated: 23 July 2025
Given 4 integers A, B, Z1, and Z2. The task is to compare A*10Z1 and B*10Z2.Examples:Input: A = 19, Z1 = 2, B = 20, Z2 = 1Output: A BExplanation:A can be written as 1900B...
read more
Misc
Mathematical
DSA
maths-power
Highest power of a number that divides other number | Set - 2
Last Updated: 23 July 2025
Given two numbers N and M(M 1), the task is to find the highest power of M that divides N.Examples:Input: N = 12, M = 2Output: 2Explanation: The powers of 2 which divide ...
read more
Searching
Mathematical
Algo Geek
Algo-Geek 2021
DSA
Binary Search
maths-power
Minimize operations to convert N to a power of K by removing or appending any digit
Last Updated: 23 July 2025
Given a number N, the task is to find the minimum number of operations to convert the given integer into any power of K where at each operation either any of the digits ca...
read more
Greedy
Mathematical
Algo Geek
Algo-Geek 2021
DSA
number-digits
maths-power
Find sum of all odd perfect squares in the range [L, R]
Last Updated: 10 December 2021
Given two integers L and R. The task is to find the sum of all the odd numbers which are perfect square in the range [L, R].Examples:Input: L = 1, R = 9Output: 10Explanati...
read more
Mathematical
DSA
maths-perfect-square
maths-power
Print all characters of string whose frequency is a power of K
Last Updated: 23 July 2025
Given string str of size N, the task is to print the characters of string whose frequency is a power of K in a lexicographically sorted order.Examples:Input: str = "aaacbb...
read more
Strings
Mathematical
Hash
DSA
frequency-counting
maths-power
Find the power of K nearest to N
Last Updated: 29 October 2023
Given two integers N K. The task is to find the nearest power of K for the integer N. If there are two nearest powers, consider the larger one.Examples:Input: N = 5, K = ...
read more
Mathematical
DSA
maths-power
Express 2^N in exactly N+1 powers of 2
Last Updated: 29 December 2022
Given a positive integer N, the task is to express 2^N in the sum of powers of 2 and in exactly N+1 terms. Print those N+1 terms.Example:Input: N = 4Output: 1 1 2 4 8Expla...
read more
Misc
Mathematical
DSA
maths-power
Check if a number N can be represented as a sum of multiples of 3, 5, and 7
Last Updated: 23 July 2025
Given a non-negative integer N, the task is to check if that integer can be represented as a summation of multiples of 3, 5, and 7, and print their respective values. If t...
read more
DSA
maths-power
Find Kth number that can be written as sum of different powers of N
Last Updated: 23 July 2025
Given two positive integers N and K. The task is to find the Kth number that can be written as the sum of different non-negative powers of N.Examples:Input: N = 3, K = 4Ou...
read more
DSA
number-theory
maths-power
Maths
Count of elements that are Kth powers of their indices in given Array
Last Updated: 23 July 2025
Given an array arr[] with N non-negative integers, the task is to find the number of elements that are Kth powers of their indices, where K is a non-negative number.arr[i]...
read more
Mathematical
DSA
Arrays
maths-power
1
2
3
4
...
13