摘要: Given a binary tree, return the sum of values of nodes with even-valued grandparent. (A grandparent of a node is the parent of its parent, if it exist 阅读全文
posted @ 2020-01-15 14:21 Schwifty 阅读(286) 评论(0) 推荐(0)
摘要: 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-01-15 13:54 Schwifty 阅读(591) 评论(0) 推荐(0)
摘要: There are n computers numbered from 0 to n-1 connected by ethernet cables connections forming a network where connections[i] = [a, b] represents a con 阅读全文
posted @ 2020-01-15 12:02 Schwifty 阅读(325) 评论(0) 推荐(0)