itarticle jdk源码之arraylist源码剖析 成员变量 构造方法 trimToSize()方法 size()方法 isEmpty()方法 contains(Object o)方法 indexOf(Object o) 方法 lastIndexOf(Object o) 方法 clone()方法 toArray()方法 toArray(T[] a)方法 get(int index)方法 set(int index, E element)方法 add(E e)方法 add(int index, E element)方法 remove(int index)方法 remove(Object o)方法 clear()方法 addAll(Collection extends E> c)方法 addAll(int index, Collection extends E> c)方法 removeAll(Collection> c) retainAll(Collection> c) 方法 序列化与反序列化 listIterator(int index)方法 subList(int fromIndex, int toIndex)方法 forEach(Consumer super E> action)方法 Sort方法 2021-01-18 0
itarticle 剑指offer笔记(二) 1.3.5 先根遍历,中根遍历,后根遍历 二叉树并且 循环+递归两种方式 1.3.6 用两个栈实现队列的add与remove(“添加”与“读取队列头,并删除”的两个功能 1.3.6 实现快速排序 1.3.7 归并排序 1.3.8 利用二进制位运算 1.3.9 实现函数double doublePower(double base, int expoent) 求base的expoent次方, 不用函数库,不考虑大数问题. 1.3.10 打印1到最大的n位数(大数) 1.3.11 知道链表头和链表中的一个节点,用O(1)的复杂度将这个节点从链表中删除。 1.3.12 交换数组中的奇数,偶数,将偶数排在前面,奇数排在后面。(程序代码可复用) 1.3.13 翻转链表 1.3.14 合并两个链表 1.3.15 判断一个二叉树是否是另一个二叉树的子树 1.3.16 镜像二叉树 1.3.17 顺时针打印数组 0
itarticle codewars Highest and Lowest Vowel Count Ones and Zeros Disemvowel Trolls Find the odd int Who likes it? Bit Counting Playing with digits 0