When you’re building a website the most important thing that matters a lot for the users is the performance of the website. It is very… Read More

Given a string S consisting of N characters, the task is to find the length of all prefixes of the given string S that are… Read More

Given a string S consisting of N characters and a positive integer K, the task is to count the number of substrings having at least… Read More

Given an array arr[] consisting of N strings, the task is to find the pair of strings that is not present in the array formed… Read More

I had applied for Accenture Off-Campus in the month of April 2021. I got an email that my rounds are going to be held from… Read More

Given a string S consisting of N alphabets and two positive integers L and U, representing the cost of converting any character to lowercase and… Read More

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 a positive integer N, the task is to check if the given number N can be represented as the product of two positive perfect… 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

Featured Articles

View All