Ben Chuanlong Du's Blog

It is never too late to learn.

Tree-Based Data Structures

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

BST vs AVL Tree vs Red-black Tree

  1. BST is not necessarily balanced and has a worst lookup time of O(n).
  2. AVL tree is strictly balanced BST.
  3. Red-black is between BST …

Get Location of Max Value in a Pandas Series

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

idxmax Return the row label of the maximum value.

argmax: Return int position of the largest value in the Series.

Foreign Language Integration in Rust

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

cc

cc is a build-time dependency for Cargo build scripts to assist in invoking the native C compiler to compile native C code into a static archive to be linked into …

Tips on Network Protocols

** Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement! **

TCP/IP and UDP/IP are low-level data transfer protocols.

HTTP, FTP, SMTP, WebSocket are high-level data transfer protocols.

WebSocket persists a connection and use it for bidirectional data transfering. It …