Leetcode By Shayan

Leetcode Solutions By Shayan

View on GitHub

Neetcode questions:

Linked Lists

problem code solution my notes
🟢 Reverse Linked List go    
🟢 Merge Two Sorted Lists go    
🟡 Reorder List      
🟡 Remove Nth Node From End of List      
🟡 Copy List With Random Pointer      
🟡 Add Two Numbers      
🟢 Linked List Cycle      
🟡 Find The Duplicate Number      
🟡 LRU Cache go    
🔴 Merge K Sorted Lists      
🔴 Reverse Nodes In K Group      

Leetcode

Linked List

problem code solution my notes
🟡 Delete the Middle Node of a Linked List go    
🟡 Odd Even Linked List go   o(1) space complexity does not mean in-place operations. you can create additional linked lists.
🟢 Reverse Linked List go    
🟡 Maximum Twin Sum of a Linked List go (duplicate linked list), typescript (stack)    

cracking the coding interview questions

Chapter 2: Linked Lists

problem leetcode problem links
2.1 Remove Dups 🟡 1836. Remove Duplicates From an Unsorted Linked List  
2.2 Return Kth to Last 🟡 19. Remove Nth Node From End of List python (two traverse)
2.3 Delete Middle Node 🟡 237. Delete Node in a Linked List python
2.4 Partition 🟡 86. Partition List  
2.5 Sum Lists 🟡 2. Add Two Numbers,
🟡 445. Add Two Numbers II
python
2.6 Palindrome 🟢 234. Palindrome Linked List  
2,7 Intersection 🟢 160. Intersection of Two Linked Lists  
2.8 Loop Detection 🟡 142. Linked List Cycle II Â