Given an array arr[] consisting of N strings, the task is to sort the array in ascending order after modifying each string by removing all… Read More

Given a string S consisting of N lowercase alphabets and an array of pairs of characters P[][2], the task is to modify the given string… Read More

Given a positive integer N, the task is to find the count of prime numbers less than or equal to N that can be represented… Read More

Given three non-negative integers A, B, and C, the task is to count the numbers in the range [1, C] that can be reduced to… Read More

Given an array arr[] consisting of N integers, the task is to find the maximum value of (arr[i] + arr[j] + i − j) for… Read More

Given a positive integer N, the task is to find the smallest semi-prime number such that the difference between any of its two divisors is… Read More

Given a string S of size N consisting of only ‘(‘ and ‘)’ only and a positive integer K, the task is to check if… Read More

Given an array arr[] consisting of N integers, the task is to find the last remaining array element after removing every second element, starting from… Read More

Given two positive integers A and B, representing the length of the semi-major and semi-minor axis of an ellipse of the equation , the task… Read More

If you’re a UX designer or a freelancer who does everything to build an application such as designing, coding, interacting with the clients (a one-man… Read More

Given three positive integers N, R, and A and a polynomial P(X) of degree N, P(i) = 1 for 1 ≤ i ≤ N and… Read More

Given two positive integers W and H and N rectangles of dimension W*H, the task is to find the smallest size of the square required… Read More

Given a string S of length N, consisting of lowercase characters containing reordered English representations of digits [0 – 9], the task is to print… Read More

Given a string S, the task is to find all the substrings in the string S which is an anagram of another different substring in… Read More

Given three strings S, S1, and S2, the task is to check if the number of substrings that start and end with S1 and S2… Read More

Featured Articles

View All