Skip to content

Category Archives: Hash

Given an array arr[], the task is to find the number of times the current integer has already occurred during array traversal.  Examples: Input: arr[]… Read More
Given an array arr[] of N integers and an array query[] having Q integers, the task is to print the array arr[] after moving the… Read More
Given an array arr[], of size N the task is to find the minimum operations on the array such that in each operation any element… Read More
Given a sorted array of distinct positive integers, print all triplets that form AP (or Arithmetic Progression)Examples :   Input : arr[] = { 2, 6,… Read More
Given a sorted array of distinct positive integers, print all triplets that form AP (or Arithmetic Progression)Examples :   Input : arr[] = { 2, 6,… Read More
Given a sorted array of distinct positive integers, print all triplets that form AP (or Arithmetic Progression)Examples :   Input : arr[] = { 2, 6,… Read More
Given a sorted array of distinct positive integers, print all triplets that form AP (or Arithmetic Progression)Examples :   Input : arr[] = { 2, 6,… Read More
Given a sorted array of distinct positive integers, print all triplets that form AP (or Arithmetic Progression)Examples :   Input : arr[] = { 2, 6,… Read More
Given an array of strings arr[]. The task is to generate the string which contains all the characters of all the strings present in array… Read More
Given a 2D matrix arr of size N*M containing lowercase English letters, the task is to find the number of unique rows in the given… Read More
Given string str of size N containing both uppercase and lowercase letters, and two integers K and X. The task is to find the count… Read More
Given string str of length N containing both uppercase and lowercase letters, and an integer K. The task is to find all substrings containing exactly… Read More
Given an array arr[] of size N, and integer K. The task is to find the longest subsequence with the difference between adjacent elements as… Read More
Hashing is the process of generating a value from a text or a list of numbers using a mathematical function known as a hash function.… Read More
Given a string S of lowercase English alphabets, the task is to find the minimum number of characters to be changed such that the left… Read More

Start Your Coding Journey Now!