Skip to content

zlysm/DSA-self-learning

Repository files navigation

DSA-self-learning

2022 summer

https://dsa.cs.tsinghua.edu.cn/~deng/ds/dsacpp/index.htm

Confusion:

Vector:

List:

Stack:

  • Chapter 4.4 试探回溯法.

BinTree:

  • traverse in BinNode_trav****.h.

BST(Binary Search Tree):

Tips & Attention:

  • C++ templates should be placed in the header file!!!
  • divide and conquer.
  • Shifting instead of multiplying/dividing by 2.
  • ListNode<T>::insertAsPred in ListNode_insert.h.
  • List<T>::remove in List_realization.h.
  • BinNode_macro useful.
  • Template class inheritance required this-> or ClassName<T>::, only for class member.

Figures:

  • traverse
travPre travPost travIn

About

Refer to a DSA textbook written by Junhui Deng

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages