# 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