摘要: You are given a 2-D array with same number of rows and columns. You have to determine the longest snake in the array. The property to find the snake is the difference between the adjacent(left, right, up or down) should be either 1 or -1. If there are more than one snakes with maximum length, the ou 阅读全文
posted @ 2013-04-07 00:20 一只会思考的猪 阅读(232) 评论(0) 推荐(0) 编辑