## Number of Hamiltonian cycle

Given an undirected complete graph of N vertices where N > 2. The task is to find the number of different Hamiltonian cycle of the… Read More »

- Minimum number of swaps required to sort an array | Set 2
- How to return multiple values from a function in C or C++?
- Reach the numbers by making jumps of two given lengths
- Program to Print the Trapezium Pattern
- Sets of pairs in C++
- Reverse middle words of a string
- Kruskal's Algorithm (Simple Implementation for Adjacency Matrix)
- Program for Deadlock free condition in Operating System
- Number of pairs whose sum is a power of 2
- Number of quadrilaterals possible from the given points
- C++ Program to implement Symbol Table
- Smallest Pair Sum in an array
- Program to print Step Pattern
- C++ Program to concatenate two strings using Operator Overloading
- Shortest path on a Square
- Sum of nodes at maximum depth of a Binary Tree | Set 2
- Split a string in equal parts such that all parts are palindromes
- Find the Nth term of the series 14, 28, 20, 40,.....
- Coloring a Cycle Graph
- Program to print the given Z Pattern
- How to delete last element from a set in C++
- Program to find Nth term in the series 0, 0, 2, 1, 4, 2, 6, 3, 8,...
- Prim's Algorithm (Simple Implementation for Adjacency Matrix Representation)
- Find the element having different frequency than other array elements
- User defined derived data types in C++
- Sum of Bitwise-OR of all subarrays of a given Array | Set 2
- Program to print Kite Pattern
- multiset erase() in C++ STL
- Iterative Letter Combinations of a Phone Number
- C/C++ program to make a simple calculator

Given an undirected complete graph of N vertices where N > 2. The task is to find the number of different Hamiltonian cycle of the… Read More »

Given an integer array containing digits from [0, 9], the task is to print all possible letter combinations that the numbers could represent. A mapping… Read More »

Given a Binary Tree, the task is to print the zigzag order of the tree. Examples: Input : 7 / \ 6 5 / /… Read More »

Given a range [L, R] where L ≤ R, the task is to generate a random permutation of the sequence [L, L + 1, L… Read More »

Given the value of ‘N’ and ‘I’. Here, represents the number of internal nodes present in an N-ary tree and every node of the N-ary… Read More »

Given an array arr[], the task is to find the sum of the minimum elements of every possible sub-array of the array. Examples: Input: arr[]… Read More »

Given an array arr[], the task is to find the sum of the maximum elements of every possible sub-array of the array. Examples: Input: arr[]… Read More »

Given a rectangle of height H and width W which has the bottom left corner at (0, 0). The task is to count the number… Read More »

In C++ we can pass class’s objects as arguments and also return them from a function the same way we pass and return other variables.… Read More »

Given two segments [L1, R1] and [L2, R2], the task is to choose two elements x and y from both the ranges (one from range… Read More »

Given side of a square n and two points (x1, y1) and (x2, y2) on the boundaries of the given square. The task is to… Read More »

Given a pointer to the head of a singly linked list and an integer k. The task is to find the product of first k… Read More »

Given a string in the form of an equation i.e A + B + C – D = E where A, B, C, D and… Read More »

Given 9 elements in a 3 x 3 matrix where the value of diagonals are 0. We need to find the values in diagonal to… Read More »

Given a root node to a tree, find the sum of all the leaf nodes which are at maximum depth from root node. Example: 1… Read More »