Every programming language has its way to define scope, and most of them work similarly and have similar scope levels such as block scope and function scope. This article is part of…
Python vs C++ Series: Mutable, Immutable, and Copy Assignment
[Updated: October 25, 2021] The third article of the Python vs C++ Series is about immutability – an object cannot be modified after it is created. (Note that the Python code in…
Python vs C++ Series: Polymorphism and Duck Typing
This is the second article of the Python vs C++ Series. In this article, we are going to talk about another basic object-oriented programming concept – Polymorphism. (Note that the Python code…
Python vs C++ Series: Getter, Setter, and Property
As a professional C++ programmer since C++03, the C++ way object-oriented thinking has been deeply embedded in my mind, and it helped me a lot when I picked up a new language…
Build the Forest in Python Series: AVL Tree vs Red-Black Tree
Being a good software engineer not only needs to know what tools (e.g., data structures and algorithms) are available but also understand how to choose the right tools. In addition, a good…
Build the Forest in Python Series: AVL Tree
After the Red-Black Tree discussion, this article will implement another variant of the self-balancing binary search tree: the AVL Tree. Project Setup Follow the same style and assumption as other articles in…
Build the Forest in Python Series: Red-Black Tree
[Updated: December 31, 2021] From the Binary Search Tree: Analysis, we know the tree height is the critical factor of binary search tree’s performance. This article and the following article will implement…
Build the Forest in Python Series: Double-Threaded Binary Search Tree
[Updated: July 3, 2021] Continue the discussion of Threaded Binary Trees; the article will implement Double Threaded Binary Search Tree, which combines the left and right single-threaded binary trees and has both…
Build the Forest in Python Series: Single-Threaded Binary Search Trees
[Updated: December 31, 2021] The article is the third one of the Build the Forest Series. In the previous article, Binary Tree Traversal, we talked about the binary tree traversals using the…
Build the Forest in Python Series: Binary Tree Traversal
[Updated: July 3, 2021] The article is the second one of the Build the Forest Series. In this article, we are not going to build a tree. Instead, we will implement the…