A. Given to arrays of positive integers an a non negative integer. The array represents customers dustance from the seller and the amount of products they want to buy, the integer is the amount of products the seller has. You need to check how many buyers can get their order (depends uf the seller has enough products) such that the closest buyer getting his order first.
B. Given the initial point of a robot and a list of steps, determine if the robot is creating the pattern of a rectangle.
C. Two frogs can stand on any rock in a row of rocks (a cell in an integers array) and each rock has a value. The two frogs can jump to a near rock only if it's value is larger or equal. You need to find the cell were they are need to be placed such that they can jump to different directions and gain the maximum distance from each other. Be careful, the questions are not hard, but there are very few tests and a tiny edge case or a little thing you haven't noddest in the question will discard the whole test. I am not sure I want to work at such place.