Spreading the WealthProblemA Communist regime is trying to redistribute wealth in a village. They have have decided to sit everyone around a circular table. F...
Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump ...
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given the following ...
There are N children standing in a line. Each child is assigned a rating value. You are giving candies to these children subjected to the following requiremen...
Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). Find the minimum element. You ...