Notes when learning Java.
Collecting useful data structure conception and tips in Java developing.
Data structure
Array
HashSet
https://www.runoob.com/java/java-hashset.html
only '
is allowed when declare character, "
is invalid but for strings.
leetcode
dual pointers
- 有序数组计算和
- 字符串翻转/回文
- 有序数组归并
- 链表环追击
- 最长match的字符串子序列
linked list
Coding tips
- compareTo
- compare object, especially string, compare with ascii num, start from the first char of the string until get result.
- compare num, can be any type of numeric num.