LeetCode 之 100-199 刷题笔记,指南,经验

因为题解较多,因此按照题号排序,每 100 道题汇总到一起。 你可以在侧边栏点击题号所处的范围,也可以通过 Ctrl + F 搜索题号/标题。

LeetCode 之 100-199 刷题笔记

100. Same Tree 相同的树

101. Symmetric Tree 对称二叉树

102. Binary Tree Level Order Traversal 二叉树的层序遍历

104. Maximum Depth of Binary Tree 二叉树的最大深度

105. Construct Binary Tree from Preorder and Inorder Traversal 从前序与中序遍历序列构造二叉树

106. Construct Binary Tree from Inorder and Postorder Traversal 从中序与后序遍历序列构造二叉树

107. Binary Tree Level Order Traversal II 二叉树的层序遍历 II

108. Convert Sorted Array to Binary Search Tree 将有序数组转换为二叉搜索树

109. Convert Sorted List to Binary Search Tree 有序链表转换二叉搜索树

111. Minimum Depth of Binary Tree 二叉树的最小深度

112. Path Sum 路径总和

113. Path Sum II 路径总和 II

114. Flatten Binary Tree to Linked List 二叉树展开为链表

115. Distinct Subsequences 不同的子序列

116. Populating Next Right Pointers in Each Node 填充每个节点的下一个右侧节点指针

117. Populating Next Right Pointers in Each Node II 填充每个节点的下一个右侧节点指针 II

118. Pascal's Triangle 杨辉三角

119. Pascal's Triangle II 杨辉三角 II

120. Triangle 三角形最小路径和

121. Best Time to Buy and Sell Stock 买卖股票的最佳时机

122. Best Time to Buy and Sell Stock II 买卖股票的最佳时机 II

123. Best Time to Buy and Sell Stock III 买卖股票的最佳时机 III

124. Binary Tree Maximum Path Sum 二叉树中的最大路径和

125. Valid Palindrome 验证回文串

127. Word Ladder 单词接龙

129. Sum Root to Leaf Numbers 求根节点到叶节点数字之和

131. Palindrome Partitioning 分割回文串

133. Clone Graph 克隆图

136. Single Number 只出现一次的数字

137. Single Number II 只出现一次的数字 II

138. Copy List with Random Pointer 复制带随机指针的链表

139. Word Break 单词拆分

140. Word Break II 单词拆分 II

141. Linked List Cycle 环形链表

142. Linked List Cycle II 环形链表 II

143. Reorder List 重排链表

144. Binary Tree Preorder Traversal 二叉树的前序遍历

145. Binary Tree Postorder Traversal 二叉树的后序遍历

146. LRU Cache LRU 缓存

147. Insertion Sort List 对链表进行插入排序

148. Sort List 排序链表

149. Max Points on a Line 直线上最多的点数

150. Evaluate Reverse Polish Notation 逆波兰表达式求值

151. Reverse Words in a String 颠倒字符串中的单词

152. Maximum Product Subarray 乘积最大子数组

153. Find Minimum in Rotated Sorted Array 寻找旋转排序数组中的最小值

154. Find Minimum in Rotated Sorted Array II 寻找旋转排序数组中的最小值 II

155. Min Stack 最小栈

156. Binary Tree Upside Down 上下翻转二叉树

157. Read N Characters Given Read4 用 Read4 读取 N 个字符

160. Intersection of Two Linked Lists 相交链表

162. Find Peak Element 寻找峰值

163. Missing Ranges 缺失的区间

165. Compare Version Numbers 比较版本号

166. Fraction to Recurring Decimal 分数到小数

167. Two Sum II - Input Array Is Sorted 两数之和 II - 输入有序数组

168. Excel Sheet Column Title Excel表列名称

169. Majority Element 多数元素

170. Two Sum III - Data structure design 两数之和 III - 数据结构设计

171. Excel Sheet Column Number Excel 表列序号

172. Factorial Trailing Zeroes 阶乘后的零#题目描述

173. Binary Search Tree Iterator 二叉搜索树迭代器

174. Dungeon Game 地下城游戏

186. Reverse Words in a String II 翻转字符串里的单词 II

187. Repeated DNA Sequences 重复的DNA序列

188. Best Time to Buy and Sell Stock IV 买卖股票的最佳时机 IV

189. Rotate Array 轮转数组

190. Reverse Bits 颠倒二进制位

191. Number of 1 Bits 位1的个数

198. House Robber 打家劫舍

199. Binary Tree Right Side View 二叉树的右视图