Find all possible combinations with sum K from a given number N(1 to N) with the repetition of numbers is allowed
Objective: Given two integers N and K, Write an algorithm to find possible combinations that add to K, from the … Read more
Objective: Given two integers N and K, Write an algorithm to find possible combinations that add to K, from the … Read more
Objective: Given a linked list in which nodes are sorted in ascending order. Write an algorithm to insert a given … Read more
Objective: Given an array of integers, write an algorithm to construct the largest number possible by appending the array elements. … Read more
Objective: Given an integer N, Write an algorithm to select numbers from 1 to 9 and make combinations such that … Read more
Objective: The activity selection problem is a combinatorial optimization problem concerning the selection of non-conflicting activities to perform within a … Read more
Objective: Given two sets of integers, write an algorithm to print the sum of overlapping elements in two sets. Note: … Read more
Objective: Given a binary tree, write an algorithm to determine whether the tree is complete or not using Level order … Read more
Objective: Given a binary tree, write an algorithm to determine whether the tree is complete or not. Complete Binary Tree: … Read more
Objective: Given a binary tree, write an algorithm to check if the tree is Full or not. Full binary tree: … Read more
Objective: Given a stack, write a program to print the stack elements in reverse order. Example: Approach: Use Temporary stack: … Read more
Objective: Given an array of numbers, write an algorithm to print all the subsets sum individually. Example: Given Input: [1, … 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 all the combinations of k numbers which sum … Read more
Given- Given V vertices, what is the maximum number of edges can be added to make Acyclic Undirected Graph. Follow … 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