# 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