- 博客(2)
- 收藏
- 关注
原创 Print BT using Java by layer
Print Binary Tree from Top to Down The method print binary tree from top to down Start a new line for each layer Print ‘null’ for nil nodes whose parent is not null Use queue to search through each l...
2018-11-02 10:31:28
103
原创 Java 实现 Quicksort 和 Selection
Java 实现 Quicksort 和 Selection QuickSort import java.util.Arrays; import java.util.Random; public class Quicksort { private static int partition(int[] arr, int low, int high) { Random rand...
2018-11-01 10:36:11
120
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人