
把二叉搜索树转换为累加树
Convert BST to Greater Tree ⭐️ LeetCode每日一题 2020.09.21 给定一个二叉搜索树(Binary Search Tree),把它转换成为累加树(Greater Tree),使得每个节点的值是原来的节点值加上所有大于它的节点值之和。
Convert BST to Greater Tree ⭐️ LeetCode每日一题 2020.09.21 给定一个二叉搜索树(Binary Search Tree),把它转换成为累加树(Greater Tree),使得每个节点的值是原来的节点值加上所有大于它的节点值之和。
全排列 II(Permutations II) ⭐️⭐️⭐️ LeetCode每日一题 2020.09.18 给定一个可包含重复数字的序列,返回所有不重复的全排列。
Invert Binary Tree ⭐️ LeetCode每日一题 2020.09.16 翻转一棵二叉树。
单词搜索(Word Search) ⭐️⭐️⭐️ LeetCode每日一题 2020.09.13 给定一个二维网格和一个单词, 找出该单词是否存在于网格中。 单词必须按照字母顺序, 通过相邻的单元格内的字母构成, 其中”相邻”单元格是那些水平相邻或垂直相邻的单元格。 同一个单元格内的字母不允许被重复使用。
Average of Levels in Binary Tree ⭐️ LeetCode每日一题 2020.09.12 Given a non-empty binary tree, return the average value of the nodes on each level in the form of an array.
Palindrome NumberDetermine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward.
Reverse IntegerGiven a 32-bit signed integer, reverse digits of an integer.
Longest Palindromic Substring Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.