#leetcode
Read more stories on Hashnode
Articles with this tag
Given two strings s and t, return true if t is an anagram of s, and false otherwise. An Anagram is a word or phrase formed by rearranging the letters...
Given the head of a linked list, return the node where the cycle begins. If there is no cycle, return null. There is a cycle in a linked list if there...
Given the head of a linked list, remove the n<sup>th</sup> node from the end of the list and return its head. Example 1: Input: head = [1,2,3,4,5], n...
Given a linked list, swap every two adjacent nodes and return its head. You must solve the problem without modifying the values in the list's nodes...
Given the head of a singly linked list, reverse the list, and return the reversed list. Example 1: Input: head = [1,2,3,4,5] Output:...
A useful tool: sentinel node ยท Given the head of a linked list and an integer val, remove all the nodes of the linked list that has Node.val == val, and...