Abhinaw TripathiApr 13, 20171 minMultiples of 3 and 5 without using % operatorWrite a short program that prints each number from 1 to n on a new line. For each multiple of 3, print “Multiple of 3” instead of the...
Abhinaw TripathiOct 26, 20163 minDynamic Programming - Egg Dropping PuzzleDynamic Programming -- Egg Dropping Puzzle The following is a description of the instance of this famous puzzle involving n=2 eggs and a bu
Abhinaw TripathiOct 26, 20161 minDynamic Programming - Coin ChangeDynamic Programming -- Coin Change Problem Given a value N, if we want to make change for N cents, and we have infinite supply of each...
Abhinaw TripathiOct 26, 20162 minDynamic Programming - Min Cost PathDynamic Programming - Min Cost Path Given a cost matrix cost[][] and a position (m, n) in cost[][], write a function that returns cost of mi