LeetCode: Min Sub and Max Sub Problems
1. 求 min/max sub-array 或 sub-string 问题的套路
1. 求 min/max sub-array 或 sub-string 问题的套路
参考 Quicksort with Python
参考:
Question: Find the $k$-th Smallest Element in an Unsorted Array
Looks like I’ve been wrong for years… maybe because I am too familiar with the SQL-style groupby operation.
$k$-way Merge ($k$ 路归并)
今天才发现如果是两个 objects 做 and 或者 or 的时候,返回的不是 boolean 而是 object。
参考 Stack Overflow: How does the bitwise complement operator (~ tilde) work? Answer by Anthony。
这 statistics 和 biology 搁一块儿简直就是灾难:各种不讲人话的、侧面描述的、不给数学公式的定义,各种 overloaded terminology。好嘛,这又来一个 effect size。