06 2017 档案
摘要:原题链接在这里:https://leetcode.com/problems/find-mode-in-binary-search-tree/ 题目: Given the root of a binary search tree (BST) with duplicates, return all th
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/diameter-of-binary-tree/ 题目: Given a binary tree, you need to compute the length of the diameter of the tree. Th
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/construct-string-from-binary-tree/ 题目: You need to construct a string consists of parenthesis and integers from
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/array-partition-i/#/description 题目: Given an array of 2n integers, your task is to group these integers into n p
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/distribute-candies/#/description 题目: Given an integer array with even length, where different numbers in this ar
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/reshape-the-matrix/#/description 题目: In MATLAB, there is a very useful function called 'reshape', which can resh
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/subtree-of-another-tree/ 题目: Given two non-empty binary trees s and t, check whether tree t has exactly the same
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/longest-uncommon-subsequence-ii/#/description 题目: Given a list of strings, you need to find the longest uncommon
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/longest-uncommon-subsequence-i/#/description 题目: Given a group of two strings, you need to find the longest unco
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/reverse-words-in-a-string-iii/#/description 题目: Given a string, you need to reverse the order of characters in e
阅读全文