Add linked-list module: singly and doubly lists with measured costs, reverse, middle, Floyd cycle detection, merge and 5 more interview problems, the 2015 menu programs and a doubly-list bug they exposed (15 tests, 15 transcripts)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b6r9iSyHu5qSJMzH2n
This commit is contained in:
Claude
2026-11-25 19:06:04 +05:30
parent 09f875ddd9
commit 515302d5ba
40 changed files with 3683 additions and 0 deletions
@@ -0,0 +1,8 @@
removeFirst() on an empty list, 2015 version and this module
============================================================
2015 list holding the value 0: removeFirst() returned 0
2015 list that is empty: removeFirst() returned 0 (and printed: List is empty - nothing to remove)
A caller that only looks at the return value cannot tell these two cases apart.
this module, list holding 0: removeFirst() returned 0
this module, now empty: removeFirst() throws NoSuchElementException: list is empty