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,14 @@
Every problem against an obviously-correct brute-force version on seeded random lists
=====================================================================================
seed 2026, 5,000 random cases per problem
problem cases disagreements
reverse (iterative, recursive) 5,000 0
middle 5,000 0
mergeSorted 5,000 0
removeNthFromEnd 5,000 0
isPalindrome 5,000 0
removeDuplicatesSorted 5,000 0
hasCycle / cycleStart / cycleLength 5,000 0
intersection 5,000 0