Skip to content

Category Archives: Algorithms

Google is a dream workplace for every software developer to work in, It is one of the best in every aspect, be it the projects… Read More
Given an array Arr of length N, it is reduced by 1 element at each step. Maximum and Minimum elements will be removed in alternating… Read More
Given two integers X and S, the task is to find the minimum length of the sequence of positive integers such that the sum of… Read More
Given an array arr[] of N positive integers. The task is to find the minimum number of operations required to make the array containing alternating… Read More
Given an integer N (N ≥ 3), two distinct numbers X and Y, the task is to find the maximum number of possible ways by… Read More
Given an array arr[] of positive numbers, the task is to find the minimum sum of a subsequence of maximum possible elements with the constraint… Read More
Given two positive integers Num1 and Num2, the task is to find the remainder when Num1 is divided by Num2. Examples: Input:  Num1 = 11,… Read More
Given a list of names in an array arr[] of size N, display the longest name contained in it. If there are multiple longest names… Read More
Print a ‘Y’ shaped pattern from asterisks in N number of lines. Examples: Input: N = 12Output: *             * *  … Read More
Given an array A[] of size N, and two integers K and C, the task is to check if all the elements of the array… Read More
Given an array arr[] of N integers, the task is to find count of triplets having a product less than 0. Examples: Input: arr[] =… Read More
Given three integers N, K and D, the task is to construct an array of size N such that every subarray of size K has… Read More
Given an array arr[] of N integers and an integer K, where K denotes the maximum number of operations which can be applied to the… Read More
Given a 2D array arr of size N which represents an interval [start, end] inclusive where (start < end), the task is to add only… Read More
Given an array arr[] of size N and an integer K, the task is to invert the 0 bit (unset bit) of any integer of… Read More

Start Your Coding Journey Now!