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:
@@ -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
|
||||
Reference in New Issue
Block a user