摘要: Given a m * n matrix mat and an integer K, return a matrix answer where each answer[i][j] is the sum of all elements mat[r][c] for i - K <= r <= i + K 阅读全文
posted @ 2020-06-04 23:00 琴影 阅读(612) 评论(2) 推荐(0) 编辑
摘要: Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Given linked list -- head = [4,5,1,9], wh 阅读全文
posted @ 2020-06-04 16:10 琴影 阅读(238) 评论(0) 推荐(0) 编辑
摘要: There are 2N people a company is planning to interview. The cost of flying the i-th person to city A is costs[i][0], and the cost of flying the i-th p 阅读全文
posted @ 2020-06-04 13:50 琴影 阅读(320) 评论(0) 推荐(0) 编辑