The mergeTwoLists function will return the head of the merged linked list given two sorted linked lists as input

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

January 29, 2024 · 4 min · Avnish
The reverseList function will return the head of the reversed linked list

Reversing Linked Lists

Implement a reverseList function that takes the head of a linked list as the input and returns the head of the reversed linked list

January 26, 2024 · 4 min · Avnish
The twoSums function will return the indices of two elements in the input array that sum up to the target value

Finding Elements in an Array that Sum Up to a Target Value

Implementing a twoSums(nums, targetValue) function that returns the indices of two elements in nums which could be summed up to the targetValue

October 15, 2023 · 4 min · Avnish
The isAnagram function will return true if both input strings are anagram and false otherwise

Identify Anagrams

Implementing an isAnagram function that returns true if its two input strings are anagrams and false otherwise

October 12, 2023 · 6 min · Avnish
The containsDuplicate function takes an array as input and returns true or false depending on the fact that array contains duplicate elements or not

Checking an Array for Duplicate Values

Implementing a containsDuplicate function that returns true if there are duplicate elements present in the array and false otherwise

October 10, 2023 · 4 min · Avnish