10 2020 档案
摘要:资料: https://cs.stackexchange.com/questions/11458/quicksort-partitioning-hoare-vs-lomuto 总结: Lomuto's 更简单、容易实现 Hoare's 比较的次数是 Lomuto's 的三分之一,更适合作为库函数实现
阅读全文
摘要:源自JDK int[] a = {1,2,3,4};// copyOf(T[] original, int newLength)a = Arrays.copyOf(a, 8); 另附: 复制+转型 (Array.newInstance) public static <T,U> T[] copyOf(
阅读全文
摘要:资料: https://www.zhihu.com/question/54443277 由于值传递,函数不能影响实参。函数的对外影响,最好约束在返回值的形式。 用 Wrapper 包装原类实现(相当于自定义Object类的指针)
阅读全文
摘要:资料: Type safety: Unchecked cast As the messages above indicate, the List cannot be differentiated between a List<Object> and a List<String> or List<In
阅读全文
摘要:资料: https://my.oschina.net/u/4010368/blog/4404876 https://www.geeksforgeeks.org/merge-sort-with-o1-extra-space-merge-and-on-lg-n-time/
阅读全文

浙公网安备 33010602011771号