Concepts Used: Mathematics Difficulty Level: Easy Problem Statement (Simplified): Print gcd of two given numbers. gcd(m,n) is the largest number possible which divides both. See original problem statement here Test...
In this article, we will delve deep into the topic of finding the greatest common divisor, GCD of two numbers. Understanding how to find the GCD of two numbers not...
Concepts Used: Sorting Difficulty Level: Easy Problem Statement (Simplified): We have to print the array containing 0s, 1s and 2s in non-decreasing order. See original problem statement here Test Case:...
Concepts Used: Sorting Difficulty Level: Medium Problem Statement (Simplified): You're provided an array containing N elements, you have to answer q queries. In each query, you're provided with x and...
Concepts Used: Sorting Difficulty Level: Easy Problem Statement (Simplified): Find how many elements change their place after sorting array. See original problem statement here Test case: Input: 1 5 8...
Concepts Used: Strings Difficulty Level: Medium Problem Statement (Simplified): For a given number between 0 and 4000, print out it's Roman Form. See original problem statement here Test Case: Input:...
Concepts Used: Strings, Basic Mathematics Difficulty Level: Easy Problem Statement (Simplified): Print the maximum length of string which can be formed such that the number of a is more than...
Palindrome string is a string which is the same on reading from the front side as well as on the rear side. Example of a palindrome string is “NAMAN” as...
Concepts Used: Mathematics Difficulty Level: Medium Problem Statement (Simplified): For a given number N, find the sum of first N primes which don't contain any odd prime digits (3,5,7) in...
Concepts Used: Mathematics Difficulty Level: Medium Problem Statement (Simplified): Perform following operations until one number becomes 0 and print the total number of operations. 1) Subtract larger number from smaller...
In the realm of problem-solving and data manipulation, uncovering the missing element in a sequence embedded within a string can be a perplexing yet intriguing task. This article delves into...
Concepts Used: Mathematics Difficulty Level: Hard Problem Statement (Simplified): For given three numbers r,p,q. We have to find the total number of values divisible by r in a range [p,q]....
Concepts Used: Mathematics Difficulty Level: Medium Problem Statement (Simplified): For a given array of integers print the total number of integers which divides all the array elements and are less...
Concepts Used: Mathematics Difficulty Level: Easy Problem Statement (Simplified): For a given number N, print Yes if it is prime, else print No. Prime Numbers: Numbers that are divisible by...
Concepts Used Strings, LPS array KPS Algorithm Difficulty Level Hard Problem Statement (Simplified): Find the minimum number of characters required to add to the given string to make it a...
Concepts Used: Mathematics Difficulty Level: Medium Problem Statement (Simplified): We have to find in how many ways we can arrange X number of men from M men and Y women...
Concepts Used: Mathematics Difficulty Level: Hard Problem Statement (Simplified): In this problem, we have to find a total number of ways to form a team of size K from X...