Skip to content

LUOJIUzxy/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leetcode

codes for leetcode exercises

Data Structures

Heap

  • Priority Queue
  • A complete binary tree
  • Value of each node must be no greater than (or no less than) the value of its child nodes
  • Time Complexity
    • insertion: O(logN)
    • deletion: O(logN)
    • finding minimun/maximum: O(1)
  • can be used to implement priority queue

Graph

  • Disjoint Set
  • find()
  • union()
  • union by rank

About

codes for leetcode exercises

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published