remove dups from a sorted list

From http://www.programcreek.com/2013/01/leetcode-remove-duplicates-from-sorted-list/: remove duplicate items from a sorted list. My initial version had a bug that I didn't catch till running. You can't increment the current pointer until all dups have been eliminated - nested inside the first while must be another while (not…

Read full post

the famous cyclical linked list

From every damn programming interview book ever. How to determine if a linked list is cyclical. Incidentally, I read a very interesting - interesting because it's so obvious and honest - critique of the logic behind using this question at all. His point is that you either know the answer…

Read full post