Skip to content

Category Archives: Sorting

Given a string S of length N, the task is to make all characters of the string the same by incrementing / decrementing the ASCII… Read More
Given an array arr[] of size N, the task is to print the minimum possible count of strictly increasing subsequences present in the array. Note: It… Read More
Given an array arr[] consisting of N positive integers, the task is to check if it is possible to reduce the size of the array… Read More
Given a string S consisting of lowercase English alphabets, the task is to print the longest word present in the given string in python. Examples:… Read More
Given a triplet of integers (A, B, C), the task is to count the maximum number of decrements by 1 that can be performed on… Read More
Given a binary tree consisting of either 1 or 0 as its node values, the task is to find the sum of all vertical levels… Read More
Given an array arr[] consisting of N intervals of the form of [L, R], where L, R denotes the start and end positions of the… Read More
GUI(Graphical User Interface) helps in better in understanding than programs. In this article, we will visualize Bubble Sort using JavaScript. We will see how the… Read More
Given an array arr[] and an integer K, the 0th index, the task is to collect the maximum score possible by performing following operations:   Start… Read More
Given an array arr[] of size N and a positive integer X, the task is to the partition the array into maximum number of subsets… Read More
Given an array arr[] and an integer K, the task is to remove K % percent array elements from the smallest and largest array elements… Read More
Given two arrays apples[] and days[] representing the count of apples an apple tree produces and the number of days these apples are edible from… Read More
Given an array arr[] consisting of N distinct positive integers, the task is to find the count of triplets (a, b, c) such that the… Read More