Myth

Results 100 comments of Myth

排序结合其他 LeetCode题目

## 位运算 https://github.com/caipengbo/AlgorithmPlayground/issues/7 https://github.com/caipengbo/Coding-Interviews/issues/10 Java中的移位运算 int左移超过32位时候,先取余再进行移位 详见29题

## 几何 直线的五种表示法: ![image](https://user-images.githubusercontent.com/19643013/68007994-4bf46280-fcb8-11e9-9f61-3a39ea21be73.png)

## 溢出问题 ```Java int a = 1000000000; long b = 5 * (a+1); // 溢出之后才转换long long c = 5L * (a+1); ```

## 蓄水池抽样

## 随机数的取法 **[min, max] 整数** ```Java Random random = new Random(); int rand = random.nextInt(max-min+1)+min; ``` nextInt(bound): [0, bound) **[min,max] double** ```Java Random random = new Random(); int rand =...

代码 https://github.com/caipengbo/AlgoEx/blob/master/LeetCodeWeeklyContest/WeeklyContest128.cpp

## DFS 深度优先搜索树 染色来区别状态,未被遍历,被其他搜索树遍历,被当前搜索树遍历 算法导论

## BFS

## 拓扑排序 判断是否有环 DFS方法的Flag数组以及DFS的具体流程,很重要!!!