## The number of cycles in a given array of integers.

Objective: Given an array of size N which contains integers from range 0 to N-1. (No duplicates). Write a program … Read more

Objective: Given an array of size N which contains integers from range 0 to N-1. (No duplicates). Write a program … Read more

Objective: Given an array of integers and number N, Write an algorithm to find and print all the unique subsets … Read more

Objective: Given an array of integers (in particular order or permutation of a set of numbers), write an algorithm to … Read more

Objective: Given two integers N and K, Write an algorithm to find subsets of size K from the numbers 1 … Read more

Stable Marriage Given N men and N women and the marriage preference order for each man and woman. Their marriage … Read more

Objective: Given an array of integers and number N, Write an algorithm to find and print all the subsets of … Read more

Objective: Given a graph, write an algorithm to find all the articulation points or cut vertices. Articulation Points: In a … Read more

Objective: Given a 2d grid map of ‘1’s (land) and ‘0’s (water), count the number of distinct or unique islands. … Read more

Objective: Given a graph and a source vertex write an algorithm to find the shortest path from the source vertex to … Read more

Objective: Given a 2d grid map of ‘1’s (land) and ‘0’s (water), count the number of islands. An island is … Read more

Objective: Given a graph represented by the adjacency List, write a Depth-First Search(DFS) algorithm to check whether the graph is … Read more

Objective: Given the banks and range of routing numbers for each bank. You have given a routing number, write a … Read more

Objective: Given two integers N and K. Write an algorithm to find all the combinations of k numbers which sum … Read more

Earlier we had discussed how to evaluate prefix expression where operands are of single-digit. In this article, we will discuss … Read more

Prefix notation is a notation for writing arithmetic expressions in which the operands appear after their operators. There are no … Read more