Skip to content

Category Archives: Algorithms

Best-first search is what the AO* algorithm does. The AO* method divides any given difficult problem into a smaller group of problems that are then… Read More
Given a grid of size, 2 rows * N columns and array Q[][2] of size M, the task for this problem is to check traversal… Read More
Comb Sort: The pre-processing stage of Comb Sort is similar to the Shell Sort method. Comb sort is a significant advancement over bubble sort, and… Read More
Given a String test_str as localhost API Request Address, the task is to get the extract port number of the service. Examples: Input: test_str =… Read More
Given a string str, the task is to extract Repository Name from the given  GIT URL. Examples: GIT URL can be any of the formats… Read More
Given a circular connected array consisting of elements from 1 to n. Starting from 1st element, you can jump from any element to any other… Read More
Given an array X[] of length N, the task is to verify whether each possible subarray has a different bitwise OR value. If possible then… Read More
Given two numbers A & B, the task is to find the length of the maximum sequence containing multiples of either A or B only… Read More
Given a string S and a set of strings D, the task is to find the minimum number of deletions required to make the string… Read More
Given the array X[],   the task is to return the maximum suffix sub-array length of the same elements for each distinct element and the… Read More
Given an array A consisting of N positive integers, the task is to calculate the maximum XOR of the subarray of size K consisting of… Read More
Given an array of N points in the plane, the task is to find a pair of points with the smallest distance between them, where… Read More
Given an array, arr[] containing n integers, the task is to find an integer (say K) such that after replacing each and every index of… Read More
Given a string S, the task is to print all the substrings of a string that has an equal number of vowels and consonants. Examples:… Read More
Given two integers N and M. Two players A and B are playing this game, and the task is to find the winner A or… Read More

Start Your Coding Journey Now!