202002-29 [LeetCode每日一题]62. Unique Paths 题目如下: A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right .... Read More >
202002-27 [LeetCode每日一题]5. 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. 5. Longest Palindromic S.... Read More >
202002-26 [LeetCode每日一题]116. Populating Next Right Pointers in Each Node 题目如下: You are given a perfect binary tree where all leaves are on the same level, and every parent has two children. The binary tree has the followi.... Read More >
202002-25 [LeetCode每日一题]114. Flatten Binary Tree to Linked List 题目如下: Given a binary tree, flatten it to a linked list in-place. For example, given the following tree: 1 / \ 2 5 / \ \ 3 .... Read More >
202002-24 [LeetCode每日一题]113. Path Sum II 题目如下: Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. 给定一棵二叉树和一个整数sum,让我们找出所有从根节点到叶子节点权值之和为.... Read More >
202002-23 [LeetCode每日一题]108. Convert Sorted Array to Binary Search Tree 题目如下: Given an array where elements are sorted in ascending order, convert it to a height balanced BST. For this problem, a height-balanced binary t.... Read More >
202002-22 [LeetCode每日一题]105. Construct Binary Tree from Preorder and Inorder Traversal 题目如下: Given preorder and inorder traversal of a tree, construct the binary tree. eg: preorder = [3,9,20,15,7] inorder = [9,3,15,20,7] re.... Read More >
202002-21 [LeetCode每日一题]101. Symmetric Tree 题目如下: Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree [1,2,2,3,4,4,3] i.... Read More >
202002-20 [LeetCode每日一题]100. Same Tree 题目如下: Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurall.... Read More >
202002-19 [LeetCode每日一题]99. Recover Binary Search Tree 题目如下: Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing its structure. LeetCode-99 Recover Binary.... Read More >