Skip to content

Category Archives: Algorithms

Prerequisite:  SORT command in Linux/Unix with examples The SORT command in the Linux operating system is used for sorting. It can be done either for… Read More
Given two integers L and R. Then the task is to output the count of integers X, such that L ≤ X2 ≤ R and… Read More
Given some UPI IDs, the task is to check if they are valid or not using regular expressions. Rules for the valid UPI ID:  UPI… Read More
Given two integer arrays A[] and B[] of length N and M respectively, the task is to find the minimum number of operations required such… Read More
You are given an array of Email IDs, the task is to return the lexicographically first email ID of every single domain. Examples: Input: Emails[]… Read More
Given an arr[] of length N. Then the task is to find minimum steps to make all the elements of the given array equal. Two… Read More
What is Sentinel Linear Search? Sentinel Linear search is a type of linear search where the element to be searched is placed in the last… Read More
Given an array arr[] consisting of N non-negative integers. The task is to find a rearrangement of the array such that the prefix OR for… Read More
What is Recursion? The process in which a function calls itself directly or indirectly is called recursion and the corresponding function is called a recursive… Read More
Find the sum of all the numbers between the range l and r. Here each number is represented by the sum of its distinct prime… Read More
Given two values A and B (A, B < 16), the task is to store the numbers in one byte.  Examples: Input: A = 5,… Read More
Given a string S and a positive integer K, The task is to maximize the product of the length of non-overlapping palindromic substrings each of… Read More
Two friends, A, and B are playing a game. In this game, a group of N coins is placed. The players can pick any number… Read More
ISIN stands for International Securities Identification Number. Given string str, the task is to check whether the given string is a valid ISIN(International Securities Identification… Read More
Given an integer N, the task is to find the number of pairs (say {a, b})from 1 to N (both inclusive) that satisfies the condition: … Read More

Start Your Coding Journey Now!