Kenny Carnealblog.kennycarneal.com·13 hours agoLeetcode 2441. Largest Positive Integer That Exists With It's NegativeIntuition Sort the array and check if the start and end of the array match. If not, increment or decrement accordingly. Approach First sort the array. Then use two pointers. One at the beginning, the other at the end. Check to see if the value at the...DiscussLeetCode journeyleetcode
Mohit Sonidevelopermohit.hashnode.dev·a day agoThe Ultimate JavaScript Arrays HandbookWhat are arrays? Arrays are the collection of elements that can hold various datatypes like numbers, string, objects. They provide a powerful way to manage and organize multiple values under a single variable name. Arrays are initialized in square br...DiscussMastering JavaScriptFrontend Development
Akshima Sharmakeycomputereducation.hashnode.dev·May 3, 2024Union of two arrays - 450DSA Cracker SolutionUnion of two arrays Given two arrays a[] and b[] of size n and m respectively. The task is to find the number of elements in the union between these two arrays. Union of the two arrays can be defined as the set containing distinct elements from both ...DiscussProgramming Blogs
Gulshan Kumarperfinsights.hashnode.dev·Apr 28, 2024Remove One Element to Make the Array Strictly IncreasingGiven a 0-indexed integer array nums, return true if it can be made strictly increasing after removing exactly one element, or false otherwise. If the array is already strictly increasing, return true. The array nums is strictly increasing if nums[i ...DiscussJava SolutionJava
Srisrip.hashnode.dev·Apr 28, 2024Transitioning from Arrays to Singly Linked Lists: Unlocking Dynamic FlexibilityWe've delved deep into arrays and learned their ins and outs. Now, it's time to take our journey a step further and explore Singly LinkedList ! 📋💡 But wait, why are we transitioning from arrays to LinkedList? Let's take a quick look: 🔍 Arrays vs. ...Discussreal time scenario of Singly Linked List
__CPP__Try_Hard__niranjan2004.hashnode.dev·Apr 26, 2024Simple DSA Question That Hurt My Ego : But Valuable Lessons LearnedQuestion Problem Statement Input and Output Formats Time and Space constrains Sample Test Cases Input 4 4 <<>> 4 >><< 5 >>>>> 7 <><><>< Output 3 3 6 2 Algorithm I came up with Idea We just have to simulate a stack ; One idea is to start from 0,...DiscussC++
Srisrip.hashnode.dev·Apr 25, 2024Exploring Advanced Array Techniques: Beyond the BasicsAre you ready to dive into the world of efficient array manipulation? Today, let's talk about the Two Pointer Approach - a powerful technique used to solve various array problems. Before Deep Dive into Advance: Let's once again dig into basic program...Discusstwo pointers
Srisrip.hashnode.dev·Apr 24, 2024A Beginner's Guide to Arrays in Data StructuresArrays are one of the fundamental data structures, serving as the building blocks for many algorithms and applications. Let's dive into the world of arrays and understand their significance, operations, and applications! 🚀 What is an Array exactly ?...DiscussarrayIndexOutOfBoundException
Thanga Ganapathyganapathy.hashnode.dev·Apr 22, 2024How to Compare Same Contents but Different Ordered Arrays in JavaScript?Welcome, One common challenge developers face is comparing arrays—specifically, determining if two arrays contain the same contents, regardless of the order of those contents. This task might seem straightforward at first glance, but it quickly delve...DiscussJavaScript
Gulshan Kumarperfinsights.hashnode.dev·Apr 21, 2024Find Missing and Repeated ValuesYou are given a 0-indexed 2D integer matrix grid of size n * n with values in the range [1, n<sup>2</sup>]. Each integer appears exactly once except a which appears twice and b which is missing. The task is to find the repeating and missing numbers a...DiscussJava Solutionarray