Merge Two Sorted Linked Lists
Implement a mergeTwoLists function that takes the head nodes of two sorted linked lists as the input and returns the head of the merged linked list
Implement a mergeTwoLists function that takes the head nodes of two sorted linked lists as the input and returns the head of the merged linked list
Implement a reverseList function that takes the head of a linked list as the input and returns the head of the reversed linked list
Implementing a twoSums(nums, targetValue) function that returns the indices of two elements in nums which could be summed up to the targetValue
Implementing an isAnagram function that returns true if its two input strings are anagrams and false otherwise
Implementing a containsDuplicate function that returns true if there are duplicate elements present in the array and false otherwise