HackerRank – Find Merge Point of Two Lists Solution in JavaScript

hackerrank Find Merge Point of Two Lists in javascript

Find Merge Point of Two Lists is a coding challenge with easy difficulty in the HackerRank data structures category. In this blog post, we’ll discuss how we can solve it in JavaScript in O(n2) time and O(1) space. Problem Statement Given pointers to the head nodes of 2 linked lists that merge together at some point, find … Read more

HackerRank – Delete duplicate-value nodes from a sorted linked list JavaScript Solution

hackerrank delete duplicate-value nodes from a sorted linked list in javascript

Delete duplicate-value nodes from a sorted linked list is a coding challenge with easy difficulty in the HackerRank data structures category. In this blog post, we’ll discuss how we can solve it in JavaScript in O(n) time and O(1) space. Problem Statement You are given the pointer to the head node of a sorted linked … Read more