IncredibleThings

导航

2018年10月1日 #

LeetCode - Rotate Image

摘要: 解法1: 先以对角线为轴翻转得到其转置矩阵,再以中间竖轴翻转。 1 2 3 1 4 7 7 4 1 4 5 6 --> 2 5 8 --> 8 5 2 7 8 9 3 6 9 9 6 3 阅读全文

posted @ 2018-10-01 09:58 IncredibleThings 阅读(92) 评论(0) 推荐(0) 编辑

LeetCode - Cut Off Trees for Golf Event

摘要: 我用了priorityqueue+bfs 来做,但没有得到正解,目前不知道错在哪儿。。。😭 阅读全文

posted @ 2018-10-01 08:32 IncredibleThings 阅读(175) 评论(0) 推荐(0) 编辑