Data Structure and Algorithms | 2020-04-22 Leetcode 134. Gas Station Question Just understand this question as the picture below: Each node re ...
Data Structure and Algorithms | 2020-04-21 Leetcode 131. Palindrome Partitioning Question Give a string, and then cut several times at arbitrary positions to ensure that each sub ...
Data Structure and Algorithms | 2020-04-19 Leetcode 130. Surrounded Regions Question Itβs a little bit like Go, turning the O enclosed by X into X, and the O at the boundary ...
Data Structure and Algorithms | 2020-04-16 Leetcode 129. Sum Root to Leaf Numbers Question Given a binary tree, the path from the root node to the leaf node forms a number. Calcula ...
Data Structure and Algorithms | 2020-04-13 Leetcode 120. Triangle Question From current layer can only choose two adjacent elements to walk down. For example, the ...
Data Structure and Algorithms | 2020-04-07 Leetcode 114. Flatten Binary Tree to Linked List Question Expand a binary tree into a linked list. Similar Question Medium - 430. Flatten a Multil ...
Data Structure and Algorithms | 2020-04-02 Leetcode 113. Path Sum II Question Given a sum, output tha paths which starts from the root node to the leaf nodes, and add ...
Data Structure and Algorithms | 2020-03-31 Leetcode 109. Convert Sorted List to Binary Search Tree Question Given an ascending linked list and generate a balanced binary search tree. Similar Quest ...
Data Structure and Algorithms | 2020-03-25 Leetcode 105. Construct Binary Tree from Preorder and Inorder Traversal Question Restored binary tree according to the pre-order and in-order traversal. Similar Question ...
Data Structure and Algorithms | 2020-03-20 Leetcode 89. Gray Code Question Generate n-bit Gray codes. The so-called Gray codes are two consecutive numbers with onl ...