Program to calculate value of nCr using Recursion
Given two numbers N and r, find the value of NCr using recursion...
read more
Print all non-increasing sequences of sum equal to a given number x
Given a number x, print all possible non-increasing sequences with sum equals to x....
read more
Find ways an Integer can be expressed as sum of n-th power of unique natural numbers
Given two numbers x and n, find a number of ways x can be expressed as sum of n-th power of unique natural numbers....
read more
Minimize cost of painting N houses such that adjacent houses have different colors
Examples:...
read more
Maximum score possible after performing given operations on an Array
Given an array A of size N, the task is to find the maximum score possible of this array. The score of an array is calculated by performing the following operations on the array N times:...
read more
Longest common subarray in the given two arrays
Given two arrays A[] and B[] of N and M integers respectively, the task is to find the maximum length of an equal subarray or the longest common subarray between the two given array....
read more
Program to find amount of water in a given glass
There are some glasses with equal capacity as 1 litre. The glasses are kept as follows:...
read more
Accolite Interview Experience | On-Campus ( Internship + FTE) 2021
Round 1 – Online MCQ round conducted on EduThrill which is their very own platform for conducting tests and hiring challenges. This round consisted of 30 MCQs to be solved in 30mins. These MCQs were covering topics such as OS, DBMS, C Outputs, Networking based on routing and subnetting, Aptitude, Java Output Questions. You have to be both fast as well as accurate to crack it. A total of 1000(approx.) students gave this test and only 200 qualified for the next round....
read more
Types of Recursions
What is Recursion? The process in which a function calls itself directly or indirectly is called recursion and the corresponding function is called a recursive function. Using recursive algorithm, certain problems can be solved quite easily. Examples of such problems are Towers of Hanoi (TOH), Inorder/Preorder/Postorder Tree Traversals, DFS of Graph, etc....
read more
Print all possible words from phone digits
Given a keypad as shown in the diagram, and an n digit number, list all words which are possible by pressing these numbers....
read more
Query to find the maximum and minimum weight between two nodes in the given tree using LCA.
Given a tree, and the weights of all the node. Each query contains two integers u and v, the task is to find the minimum and maximum weight on the simple path between u and v (both inclusive)....
read more
Pen Distribution Problem
Given an integer N denoting the number of boxes in a pen, and two players P1 and P2 playing a game of distributing N pens among themselves as per the following rules:...
read more