## 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 an array of integers, write an algorithm to construct the largest number possible by appending the array elements. … Read more

Objective: Given an array of integers, find the sum of any three elements which is closest to zero. The array … 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 an array of numbers and integer K. Your task is to find lengths of all the subsets which … Read more

Objective: Given an array of integers, write a program to replace its elements with the maximum element on the right … 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 an undirected graph, Write an algorithm to determine whether its tree or not. An undirected graph is a … 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 range, find all the numbers in the range which has prime set bits using Sieve of Eratosthenes … 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 2d grid map of ‘1’s (land) and ‘0’s (water), count the number of islands. An island is … Read more

Objective: Given a string, write an algorithm to find the longest substring with at most K characters. Example: Input: aabbaacdeeeeddded, … Read more

Objective: Given a number N, write an algorithm to find the maximum number of steps it takes to transform (1, … Read more