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

Tag: Leetcode - Depth First Search

Tags

Data Structure and Algorithms | 2020-05-22

Leetcode 210: Course Schedule II

Question A extension on 207. Course Schedule. Given the relationship of n gro ...

Nick Li
Nick Li
9 min read
Data Structure and Algorithms | 2020-05-17

Leetcode 207. Course Schedule

Question Given the relationship of n groups of prerequisite courses, [m, n] means that n class mu ...

Nick Li
Nick Li
8 min read
Data Structure and Algorithms | 2020-05-14

Leetcode 200. Number of Islands

Question Given a two-dimensional array, 1 as the land and 0 as the sea, connecting the land to fo ...

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-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-02-11

Leetcode 98. Validate Binary Search Tree

Question Given a tree, determine if the tree is a valid binary search tree. The binary search tree ...

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