Solve the Linked List questions

I did these during my flight from LON->NYC without wifi. I managed to get both
correct on the first attempt although I did not find the *optimal* solution for
"Reorder List". IMO "Reorder List" is the best Linked List question I've seen
because it covers a few essential Linked List tricks.
This commit is contained in:
William Carroll 2020-12-18 19:55:18 +00:00
parent 039e712656
commit 983b0fb276

View file

@ -91,9 +91,9 @@
https://leetcode.com/problems/merge-two-sorted-lists/ https://leetcode.com/problems/merge-two-sorted-lists/
** DONE Merge K Sorted Lists ** DONE Merge K Sorted Lists
https://leetcode.com/problems/merge-k-sorted-lists/ https://leetcode.com/problems/merge-k-sorted-lists/
** TODO Remove Nth Node From End Of List ** DONE Remove Nth Node From End Of List
https://leetcode.com/problems/remove-nth-node-from-end-of-list/ https://leetcode.com/problems/remove-nth-node-from-end-of-list/
** TODO Reorder List ** DONE Reorder List
https://leetcode.com/problems/reorder-list/ https://leetcode.com/problems/reorder-list/
* Matrix * Matrix
** TODO Set Matrix Zeroes ** TODO Set Matrix Zeroes