08 2022 档案

摘要:Given the root of a binary tree, return the sum of values of nodes with an even-valued grandparent. If there are no nodes with an even-valued grandpar 阅读全文
posted @ 2022-08-31 12:50 Grandyang 阅读(227) 评论(0) 推荐(0) 编辑
摘要:Given a m x 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 + 阅读全文
posted @ 2022-08-17 13:45 Grandyang 阅读(442) 评论(0) 推荐(0) 编辑
摘要:We are given a list nums of integers representing a list compressed with run-length encoding. Consider each adjacent pair of elements [freq, val] = [n 阅读全文
posted @ 2022-08-11 14:03 Grandyang 阅读(180) 评论(0) 推荐(0) 编辑
摘要:Given a string s. In one step you can insert any character at any index of the string. Return the minimum number of steps to make s palindrome. A Pali 阅读全文
posted @ 2022-08-06 12:25 Grandyang 阅读(408) 评论(0) 推荐(0) 编辑

Fork me on GitHub