• Algs
  • Linear
  • Summary
  • Tips
  • Introduction
  • Array
    • Unsorted
      • Longest Consecutive Sequence
      • Gas Stations
      • Candy
      • 973. K Closest Points to Origin ★
    • Sorted Array
      • Median of Two Sorted Arrays
      • 3Sum+3SumClosest+3SumSmaller
      • Search in Rotated Sorted Array
    • SlidingWindow
  • Matrix
    • Valid Sudoku
    • Rotate Image
    • Set Matrix Zeroes
  • Singly Linked List
    • Linked List Insertion
    • Singly Linked List 2
    • Add Two Numbers
    • Reverse List
    • Remove Duplicates from Sorted List
    • Remove Nth Node From End of List
    • Swap Nodes in Pairs
    • Reverse Nodes in k-Group
    • Copy List with Random Pointer
    • Linked List Cycle and 2
    • Reorder List
  • BinarySearch
    • 1DBinarySearch
    • MatrixBinarySearch
    • Search in Rotated Sorted Array
    • Find Minimum in Rotated Sorted Array
    • !!! II Find Minimum in Rotated Sorted Array
    • 704_BinarySearch★
  • TwoPointers
    • Meeting
      • Trapping Rain Water
    • Forwarding
      • Climbing Stairs
  • Tree
  • BinaryTree
    • Traversal
      • Binary Tree Traversal Recursive/Iterative/Morris
      • Max Depth of Binary Tree
      • Level Order Traversal
      • Symmetric Tree
      • Count Univalue Subtrees 计数相同值子树的个数
      • Binary Tree Vertical Order Traversal 314
    • Construct Tree
      • Inorder and Postorder Construct
      • Preorder and Inorder Construct
      • Construct Binary Tree from Preorder and Postorder Traversal
      • Construct a special tree from given preorder traversal
      • Serialize and Deserialize Binary Tree _ 297
      • Connect nodes at same level
    • SearchInTree
      • Lowest Common Ancestor of a Binary Tree
    • BinarySearchTree
  • BinarySearchTree
  • N-ary Tree
    • Preorder Postorder Traversal
    • Serialize and Deserialize an N-ary Tree
    • Encode N-ary Tree to Binary Tree
    • Maximum Depth of N-ary Tree
    • Construct the full k-ary tree from its preorder traversal
    • Diameter of n-ary tree using BFS
    • Convert a N-ary Tree to a Binary Tree
    • Recover a N-ary Tree from a Binary Tree
  • Python
  • PythonLib
  • sortPython
  • Sequence
    • String
  • Graph
  • Representations
    • Detect Cycle in a Graph
  • Depth-First Search
    • Maximum Depth of Binary Tree
    • DFS
    • 城堡问题
    • 寻路问题 - DFS+剪枝
    • Same Tree
  • Breadth-First Search
    • Number of Islands
  • Bitwise Operators
  • Bitwise
    • Gray Code
    • Single Number l && ll
  • Data Structure
  • LinkedList
    • Doubly Linked List
    • Singly Linked List
    • Circular Linked List
  • Stack
    • Resized Array
  • Queue & Priority Queue
  • Sort
    • Merge Sort
    • Quick Sort
    • Counting Sort
  • Queue
  • Other
  • BackTracking
Powered by GitBook

Introduction

My Awesome Book

This file file serves as your book's preface, a great place to describe your book's content and ideas.

Contents

Summary

  • DFS,

    • Maximum Depth of Binary Tree

    • Number of Islands

    • Same Tree

    • Balanced Binary Tree

    • Convert Sorted Array to Binary Search Tree

    • Max Area of Island

    • Symmetric Tree

    • Construct Binary Tree from Preorder and Inorder Traversal

    • Construct Binary Tree from Inorder and Postorder Traversal

    • Remove Invalid Parentheses

    • Populating Next Right Pointers in Each Node

    • Populating Next Right Pointers in Each Node II

    • Recover Binary Search Tree

    • Path Sum

    • Path Sum II

  • BFS

    • Number of Islands

    • Perfect Squares

    • Remove Invalid Parentheses

    • Word Ladder & Word Ladder II

    • Binary Tree Level Order Traversal

    • Clone Graph

    • Minimum Depth of Binary Tree

    • Binary Tree Level Order Traversal II

    • Binary Tree Right Side View

    • Course Schedule

    • Binary Tree Zigzag Level Order Traversal

  • Backtracking

  • Union-Find

  • Trie

  • Priority Queue,

  • Heap

    • Kth Largest Element in an Array

    • Merge k Sorted Lists

    • Top K Frequent Elements

    • The Skyline Problem

    • Sliding Window Maximum

  • Stack

    • Trapping Rain Water

    • Valid Parentheses

    • Min Stack

  • Queue

    • Task Scheduler

    • Moving Average from Data Stream

    • Max Sum of Rectangle No Larger Than K

Find the Connected Component in the Undirected Graph

https://aaronice.gitbooks.io/lintcode/content/two_pointers/container_with_most_water.html

results matching ""

    No results matching ""