Blog


Where I write.

LeetCode: Stock Problems


Python: enumerate()


Python: Be cautious when using generators/iterators in nested loops


Python: It's safe to slice a list with index out of range


Python: calling static methods within the same class / recursive static methods


Python: sorted() vs list.sort()


LeetCode: Min Sub and Max Sub Problems


Python: set / dict / Counter / OrderedDict / defaultdict


Python: Quick Sort Revisited / Relation To BST / Lomuto Partition Scheme / Hoare Partition Scheme


Python: Heaps