Home
YUHA👩🏻‍💻
Cancel

[Medium] Swap Nodes in Pairs

‘Swap Nodes in Pairs (Medium) 📌 Problem https://leetcode.com/problems/swap-nodes-in-pairs/ 📌 Answer Iterative ```java /** Definition for singly-linked list. public class ListNode { in...

[Medium] Remove Duplicates from Sorted List II

‘Remove Duplicates from Sorted List II (Medium)’ 📌 Problem https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/ 📌 Answer class Solution { public ListNode deleteDuplicates(L...

[Easy] Convert Binary Number in a Linked List to Integer

‘Convert Binary Number in a Linked List to Integer (Easy) 📌 Problem https://leetcode.com/problems/convert-binary-number-in-a-linked-list-to-integer/ 📌 Answer /** * Definition for singly-linke...

[Easy] Middle of the Linked List

‘Middle of the Linked List’ in LeetCode (Easy) 📌 Problem https://leetcode.com/problems/middle-of-the-linked-list/ 📌 Answer When traversing the list with a pointer slow, make another pointer fa...

[Easy] Remove Duplicates from Sorted List

‘Remove Duplicates from Sorted List’ in LeetCode (Easy) 📌 Problem https://leetcode.com/problems/remove-duplicates-from-sorted-list/ 📌 Answer /** * Definition for singly-linked list. * public...