摘要: 题目如下: Return the number of distinct non-empty substrings of text that can be written as the concatenation of some string with itself. Example 1: Input 阅读全文
posted @ 2020-01-12 19:44 seyjs 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 题目如下: 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 阅读全文
posted @ 2020-01-12 17:22 seyjs 阅读(456) 评论(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 <= 阅读全文
posted @ 2020-01-12 17:13 seyjs 阅读(619) 评论(0) 推荐(0) 编辑
摘要: 题目如下: We are given a list nums of integers representing a list compressed with run-length encoding. Consider each adjacent pair of elements [a, b] = [ 阅读全文
posted @ 2020-01-12 17:02 seyjs 阅读(318) 评论(0) 推荐(0) 编辑