摘要:
题目如下: Given the root of a binary search tree with distinct values, modify it so that every node has a new value equal to the sum of the values of the 阅读全文
摘要:
题目如下: Given the root of a binary tree, consider all root to leaf paths: paths from the root to any leaf. (A leaf is a node with no children.) A node i 阅读全文
摘要:
题目如下: Given a matrix consisting of 0s and 1s, we may choose any number of columns in the matrix and flip every cell in that column. Flipping a cell ch 阅读全文
摘要:
题目如下: You have a set of tiles, where each tile has one letter tiles[i]printed on it. Return the number of possible non-empty sequences of letters you 阅读全文
摘要:
题目如下: Return the lexicographically smallest subsequence of text that contains all the distinct characters of text exactly once. Example 1: Example 2: 阅读全文