Inside Java Collections: ArrayList, LinkedList, ArrayDeque and HashMap
How ArrayList grows, why LinkedList and Stack are rarely the right choice, how HashMap hashes, treeifies and resizes, Java 21 Sequenced Collections, a Big-O cheat sheet, and building ArrayList and LinkedList yourself.