Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 395 Bytes

README.md

File metadata and controls

35 lines (24 loc) · 395 Bytes

C++ Algorithm

Sort

  1. STL Sort
  • Time Complexity (n log n ~ n^2)
  • Easy to use
  • Commonly used
  1. Merge Sort
  • Time Complexity (n log n)
  • Fast
  • Not common
  1. Selection Sort
  • Time Complexity (n^2)
  • Slow
  • Never use it
  1. Heap Sort
  • Time Complexity (n log n)
  • Fast
  • Not common
  1. Insertion Sort
  • Time Complexity (n^2)
  • Slow
  • Never use it

Graph Navigation

  1. DFS