Container Puzzle Algorithm: Measure 1-10 litres, given 3, 7, and 10 litre containers, with the largest being full of water. x Container Puzzle Solution: Given three containers 3, 7, and 10 litres respectively with the largest being full of water, determine...
Depth of an N-Ary tree and Finding Route to a node in an N-Ary tree x Depth of an N-Ary tree and Finding Route to a node in an N-Ary tree Problem Statement:- Given an N-Ary...
How to calculate sum of all permutations of a whole number x Calculate sum of all permutations of a whole number Calculate sum of permutations of digits problem statement: Can...
Algorithm for splitting 40 kg stone in 4 parts to measure between 1-40 kg puzzle x Problem Statement:- There is a 40 kg stone that is to be broken into 4 pieces such that you can measure...
What is Luhn’s Algorithm ? How to use it to validate credit card number ? x What is Luhn’s Algorithm? Luhn Algorithm is also known as modulo 10 algorithm or modulus 10 formula. It’s a checksum...