摘要:
题目如下: 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 阅读全文
摘要:
题目如下: 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 阅读全文
摘要:
题目如下: 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 <= 阅读全文
摘要:
题目如下: We are given a list nums of integers representing a list compressed with run-length encoding. Consider each adjacent pair of elements [a, b] = [ 阅读全文