mirror of
https://github.com/TheAlgorithms/Java.git
synced 2026-01-28 19:57:13 +08:00
- The "count" variable made the code more prone to errors, so I removed and replaced it with another "getSize()" function. - The value of "next" was initialized to null. - Major improvements of code were given to "insertNth()" and "deleteHead()" functions for efficiency. - A new function "deleteNth()" was defined, increasing the usefulness of the program.
4.1 KiB
4.1 KiB