2018年9月25日

855. Exam Room

摘要: In an exam room, there are N seats in a single row, numbered 0, 1, 2, ..., N-1. When a student enters the room, they must sit in the seat that maximizes the distance to the closest person. If there ... 阅读全文

posted @ 2018-09-25 04:25 猪猪🐷 阅读(297) 评论(0) 推荐(0)

774. Minimize Max Distance to Gas Station

摘要: On a horizontal number line, we have gas stations at positions stations[0], stations[1], ..., stations[N-1], where N = stations.length. Now, we add K more gas stations so that D, the maximum distanc... 阅读全文

posted @ 2018-09-25 04:23 猪猪🐷 阅读(158) 评论(0) 推荐(0)

568. Maximum Vacation Days

摘要: LeetCode wants to give one of its best employees the option to travel among N cities to collect algorithm problems. But all work and no play makes Jack a dull boy, you could take vacations in some pa... 阅读全文

posted @ 2018-09-25 04:21 猪猪🐷 阅读(128) 评论(0) 推荐(0)

529. Minesweeper

摘要: Example 2: 阅读全文

posted @ 2018-09-25 04:18 猪猪🐷 阅读(146) 评论(0) 推荐(0)

导航