1-Right Triangle?
Determines whether the 3 sides' measurement constitute the side lengths of some right triangle.
input: 3 integers output: True or False
2-Random Walker
A Java programmer begins walking aimlessly. At each time step, she takes one step in a random direction (either north, east, south, or west), each with probability 25%. She stops once she is at Manhattan distance r from the starting point. How many steps will the random walker take?
input: 1 integer of the distance output: Number of steps to reach that distance