Description:
Skiing in order to gain speed, the area must slope downward slide. Michael wants to know the end of the longest in a landslide area. Region is given by a two-dimensional array. Each number represents an array of point level. Here is an example
12345
161,718,196
152,425,207
142,322,218
131,211,109
A person can slide up and down from a point adjacent to one of four points, if and only if highly reduced. In the above example, one can slide the slide is 24-17-16-1. Of course 25-24-23-...- 3-2-1 longer. In fact, this is the longest.
To Search:
File list (Check if you may need any files):
滑雪问题.cpp