## Number of ways to go from one point to another in a grid

Given the NxN grid of horizontal and vertical roads. The task is to find out the number of ways that the person can go from… Read More »

- Puzzle | 1000 light bulbs switched on/off by 1000 persons passing by
- Print all permutations of a string in Java
- Number of integral solutions of the equation x1 + x2 +.... + xN = k
- Program to calculate the value of nCr Efficiently
- Number of permutations of a string in which all the occurrences of a given character occurs together
- Check if two Linked Lists are permutations of each other
- Minimum difference between the highest and the smallest value of mines distributed
- Permutations to arrange N persons around a circular table
- Check if any permutation of N equals any power of K
- Permutation of an array that has smaller values from another array
- Permutations of n things taken r at a time with k things together
- Maths behind number of paths in matrix problem
- Number of ways to go from one point to another in a grid
- All permutations of an array using STL in C++

Given the NxN grid of horizontal and vertical roads. The task is to find out the number of ways that the person can go from… Read More »

Given an array, the task is to print or display all the permutations of this array using STL in C++. Examples: Input: a[] = {1,… Read More »

The problem is to count all the possible paths from top left to bottom right of an m*n matrix with the constraints that from each… Read More »

Given a string str, the task is to print all the permutations of str. A permutation is an arrangement of all or part of a… Read More »

There are 1000 light bulbs and 1000 persons. All light bulbs are initially off. Person 1 goes flipping light bulb 1, 2, 3, 4, …… Read More »

Given n, r and K. The task is to find the number of permutations of different things taken at a time such that specific things… Read More »

Given a positive integer N and K where and . The task is to check whether any permutation of digits of N equals any power… Read More »

Given two arrays A and B of equal size. The task is to print any permutation of array A such that the number of indices… Read More »

Given a string ‘s’ and a character ‘c’, the task is to find the number of permutations of the string in which all the occurrences… Read More »

Given n companies and m oil mines having values, the task is to distribute the mines among n companies in a fair manner. That is… Read More »

Given two singly Linked list of integer data. The task is to write a program that efficiently checks if two linked lists are permutations of… Read More »

Given two numbers n, r ( n>=r ). The task is to find the value of C(n, r) for big value of n. Examples: Input:… Read More »

Given N, the number of persons. The task is to arrange N person around a circular table. Examples: Input: N = 4 Output: 6 Input:… Read More »

Given N and K. The task is to count the number of the integral solutions of a linear equation having N variable as given below:… Read More »

Given an array of N numbers and an integer K. The task is to print the number of unique subsequences possible of length K. Examples:… Read More »