z***e 发帖数: 1757 | 1 Consider the following problem. Yoou're driving down a long line of
parking spaces, looking for a place to park. Think of potential spaces
at locations
-100, -99,-98,...-1,0,1,2,... You're currently at location -100, which
is unoccupied. If you decide not to park there, you'll drive a bit
further and see whether location -99 is occupied or not; if it is, you
must proceed to -98;and if not, you must decide whether to park there
or try your luck with -98, and so on. You can't circle back to empty |
|