Given a string S consisting of only lowercase English letters. The task is to find the minimum number of times of finger moves to type… Read More

# Category Archives: Searching

Given a string str, consisting of lowercase English alphabets, the task is to calculate the sum of indices(1-based indexing) of the characters removed to obtain… Read More

Given a Binary Tree and an array arr[] consisting of values of nodes to be deleted, the task is to print Inorder Traversal of the… Read More

Given two integers N and M, the task is to perform the following operations: For every value in the range [N, M], calculate the sum… Read More

Given an array arr[] consisting of N integers, and a matrix Q[][] consisting of queries of the form (L, R, K), the task for each… Read More

Given an array string[] consisting of N numeric strings of length M, the task is to find the number of distinct strings that can be… Read More

Given an array arr[] of length N containing array elements in the range [1, N], the task is to find the maximum number of pairs… Read More

Prerequisite: Trie | (Insert and Search) Given an array of strings words[] and a partial string str, the task is to find the strings of… Read More

Given an array arr[], consisting of N non-negative integers and an integer S, the task is to find the number of ways to obtain the… Read More

Given an array arr[] consisting of N integers and queries Q[][] of the form {L, R} where 0 ≤ L < R ≤ N –… Read More

Given an array a[] consisting of N integers, the task is to find the maximum possible sum that can be achieved by deducting any value,… Read More