摘要: Given a rectangular cake with height h and width w, and two arrays of integers horizontalCuts and verticalCuts where horizontalCuts[i] is the distance 阅读全文
posted @ 2021-02-17 15:47 CNoodle 阅读(339) 评论(0) 推荐(0)
摘要: Given a m * n matrix mat of ones (representing soldiers) and zeros (representing civilians), return the indexes of the k weakest rows in the matrix or 阅读全文
posted @ 2021-02-17 13:25 CNoodle 阅读(249) 评论(0) 推荐(0)
摘要: In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep its original data. 阅读全文
posted @ 2021-02-17 05:40 CNoodle 阅读(186) 评论(0) 推荐(0)