MikeyforLeet Code Solutionsleetcodesolver.hashnode.dev·Sep 22, 202311. leetcode solution using JavaScript11. Container With Most Water You are given an integer array height of length n. There are n vertical lines drawn such that the two endpoints of the i<sup>th</sup> line are (i, 0) and (i, height[i]). Find two lines that together with the x-axis form ...Discuss·32 readsleetcode-solution

John Kamaujohnnyk.hashnode.dev·Sep 6, 2023Data Structures and AlgorithmsTwo pointers technique The two-pointer technique is a fundamental algorithmic approach that plays a pivotal role in optimizing solutions to specific types of problems in computer science. This strategy involves the use of two pointers, often represen...Discuss·10 likesdata structure and algorithms

Soumya Ranjan Dassmy637.hashnode.dev·Sep 3, 2023Two pointers technique simplifiedWhile solving DSA problems time complexity plays an important role. The interviewer always wants for better optimal approach. Two pointers technique is mostly used for solving DSA problems with better optimized time complexity. As the name suggests ...Discuss·4 likesDSA

Syed Umer Hasansyedumerhasan.com·Jul 23, 2023How to Solve Array Problems in Coding Interviews?In coding interviews, solving problems related to arrays can be done using various techniques and algorithms. Let's take a look at some commonly used methods: Two Pointers Technique This method involves using two pointers to move through the array ...DiscussCompetitive ProgrammingCompetitive programming

Jaspreet Kaurtechkaur.hashnode.dev·Jul 4, 2023Remove duplicate elements from sorted array IILeetcode 80 - Two Pointers Queetion - Given an integer array nums sorted in non-decreasing order, remove some duplicates in-place such that each unique element appears at most twice. The relative order of the elements should be kept the same. Since i...Discusstwo pointers

Nilesh Saininileshsaini.hashnode.dev·May 31, 2023Sort ColorsSorting algorithms play a crucial role in programming. While there are several well-known sorting algorithms available, sorting an array that contains only three distinct elements poses an interesting challenge. The Dutch National Flag problem, named...Discuss·5 likesArrays and Hashingarray

Nilesh Saininileshsaini.hashnode.dev·May 28, 2023Intersection of Two Linked ListsOne common problem involving linked lists is determining if and where two lists intersect. The intersection point is defined as the node at which the two linked lists share common elements. This problem poses an interesting challenge due to the varyi...Discusstwo pointers

Nilesh Saininileshsaini.hashnode.dev·May 26, 2023Remove Duplicates from Sorted ListWhen working with sorted linked lists, a common challenge is removing duplicate nodes while preserving the original order of distinct elements. In this article, we will delve into solving the “Remove Duplicates from Sorted List” problem. We will expl...DiscussJavaScript

Nilesh Saininileshsaini.hashnode.dev·May 25, 2023Middle of the Linked ListIf you guys study a linked list or work with a linked list, one common task is to find the middle node. In this article, we will explore different approaches to solve this question and implement their solutions in JavaScript. We will also analyze the...Discusstwo pointers

Nilesh Saininileshsaini.hashnode.dev·May 24, 2023Palindrome Linked ListIn this article, we will explore different approaches to check if the given linked list is a palindrome or not. Problem Statement: Given the head of a singly linked list, return true if it is a palindrome or false otherwise. Approach 1: Use Extra ...Discusslinked list