• HOME
  • ABOUT
  • ARCHIVES
Search ...
Search ...

Category: Data Structure and Algorithms

Categories

Data Structure and Algorithms | 2020-04-22

Leetcode 134. Gas Station

Question Just understand this question as the picture below: Each node re ...

Nick Li
Nick Li
3 min read
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 ...

Nick Li
Nick Li
5 min read
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 ...

Nick Li
Nick Li
11 min read
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 ...

Nick Li
Nick Li
4 min read
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 ...

Nick Li
Nick Li
5 min read
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 ...

Nick Li
Nick Li
3 min read
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 ...

Nick Li
Nick Li
4 min read
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 ...

Nick Li
Nick Li
3 min read
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 ...

Nick Li
Nick Li
6 min read
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 ...

Nick Li
Nick Li
5 min read
← PREV12345…8NEXT β†’
— Nick Li —

Recent Posts

  • Java Multithreading 19: Condition
  • Leetcode 228. Summary Ranges
  • Java Multithreading 18: Unfair lock
MORE β†’

Categories

  • Data Structure and Algorithms
  • Java
  • Spring Cloud
  • how-to-guide

Tag Cloud

Cron Expression Intellij Jackson Java 8 New Features Java Collections Leetcode - Array Leetcode - Backtracking Leetcode - Binary Search Leetcode - Bit Manipulation Leetcode - Breadth First Search Leetcode - Data Leetcode - Depth First Search Leetcode - Divde and Conquer Leetcode - Dynamic Programming Leetcode - Graph Leetcode - Greedy Leetcode - Hash Table Leetcode - Linked List Leetcode - Math Leetcode - Ordered Map Leetcode - Sliding Window Leetcode - Sort Leetcode - Stack Leetcode - String Leetcode - Topological Sort Leetcode - Tree Leetcode - Two Pointers Leetcode - Union Find Multithreading Stream API hexo
Nick Li © 2020
Hexo Casper