经济学的数学原理:总成本,边际成本,边际收益和市场均衡
平均总成本曲线的形状为什么是U行的?为什么边际成本曲线和平均总成本曲线总是相交于平均总成本最低点?为什么长期价格等于企业的平均总成本?为什么竞争企业的边际成本等于价格?为什么竞争市场中的企业运行在有效规模?
税收的哲学:效率和平等
我们知道,为了维持公共机构和公共服务的运转,税收是必不可少的,“税收是我们为文明社会付出的代价”。根据社会契约的思想,每个人让渡出一部分的个人权利来组成一个政府,从而保护自己的财产等权利,税收可以视作是这让渡出的一部分权利。那么如何确定每个人应该缴纳税款的量呢?怎么样的税收制度才是有效率的?
Sliding Window: Minimal Window of Array
Sliding window is a common approach in solving algorithm problems, it has a few elements: Window start and end. Status of elements in the window. Window extends to the right according to the status. Window shrinks to the right according to the status. Window stops moving at certain condition.
Maximum Size Subarray Sum Equals K
Java solution to the Maximum Size Subarray Sum Equals K problem.
Maximum Product Subarray
Solution to the Maximum Product Subarray problem.
Maximum Subarray
Solution to the Maximum Subarray problem.
Largest Rectangle in Histogram
Solution to the Largest Rectangle in Histogram problem.
Dynamic Programming: Maximal Rectangle
Solution to the Dynamic Programming: Maximal Rectangle problem.
野生大象保护:公共物品和公共资源的非排他性
公共物品和公共资源的特点在于没有排他性,也即每个人都可以免费得到。与此同时,我们却很难为这类物品定价,所以单纯由市场对这类产品进行管理可能是无效的,政府的干预这时可以增加经济福利。
Dynamic Programming: Regular Expression Matching
Solution to the Dynamic Programming: Regular Expression Matching problem.