摘要: Given a bench with n seats and few people sitting, tell the seat number each time when a new person goes to sit on the bench such that his distance fr 阅读全文
posted @ 2018-09-27 09:10 轻风舞动 阅读(287) 评论(0) 推荐(0) 编辑
摘要: You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water. Grid cells are connected horizontally/ve 阅读全文
posted @ 2018-09-27 06:23 轻风舞动 阅读(351) 评论(0) 推荐(0) 编辑