LeetCode

572. Subtree of Another Tree

# Definition for a binary tree node. # class TreeNode: # def __init_

589. N-ary Tree Preorder Traversal

589. N-ary Tree Preorder Traversal """ # Definition for

606. Construct String from Binary Tree

606. Construct String from Binary Tree # Definition for a binary

105. Construct Binary Tree from Preorder and Inorder Traversal

105. Construct Binary Tree from Preorder and Inorder Traversal 題目給出前序遍歷以及中序遍歷的順序,

337. House Robber III

337. House Robber III 這一題是 198. House Robber 和 213.

83. Remove Duplicates from Sorted List

83. Remove Duplicates from Sorted List # Definition for singly-linked list.

211. Design Add and Search Words Data Structure

211. Design Add and Search Words Data Structure 這一題比較特別,需要模糊比對搜尋的字串,

1248. Count Number of Nice Subarrays

1248. Count Number of Nice Subarrays 這題目要求我們找到數組中 總和為 k 的奇數數目

642. Design Search Autocomplete System

642. Design Search Autocomplete System class AutocompleteSystem: def __init__(self,

1268. Search Suggestions System

1268. Search Suggestions System class TrieNode: def __init__(self): self.