Amit MehtaforIndepth JavaScriptapmfree.hashnode.net·Jul 8, 2022FeaturedHow to Solve the Staircase Problem with 5 Lines of JavaScriptIf you're new to algorithms and leetcode, the staircase problem is infamous! What is the Staircase Programming Challenge? Stated simply.... Imagine a staircase with N steps. If you can take 1, 2, or 3 steps at a time, how many different ways can yo...Discuss·62 likes·1.6K readsJavaScript
Tiger AbrodiforTiger's Placetigerabrodi.hashnode.net·Mar 28, 2023Software engineers need Leetcode to succeedIntroduction It's bullshit! 😉 You don't need Leetcode to succeed in tech. You need the skills and experience to help companies build real shit. And, of course, as I always say, get your name out there. The more people that know about you, the highe...Shiv Shekhawat and 1 other are discussing this2 people are discussing thisDiscuss·53 likes·975 readsCareer
Victoria LoforArticles by Victoria Lovictoria.hashnode.net·May 31, 2020LeetCode Challenge #6: Decompress Run-Length Encoded ListWriter's note: Found this draft sitting too long in Drafts. Lost the timing to publish in May so backdated it to May but published in July. Problem Statement We are given a list nums of integers representing a list compressed with run-length encodin...Discuss·32 likes·1.8K readsLeetCode Challengeleetcode
Vaani PathariyaforTheTechDiariesthetechdiaries.hashnode.net·Apr 25, 2023Neetcode 150 : What is it ??Neetcode 150 is a set of 150 most asked Leetcode questions in coding contests of various hiring companies, especially FAANG. Okay, but you might be wondering why am I writing about this, and what am I trying to do here. Well, here's the answer: I wan...DiscussDSA
Asad UllahforEngineering with Asadassadbintahir.hashnode.net·Apr 25, 2023How to solve LeetCode problem about finding all duplicates in an arrayIntroduction In this article, we will discuss the solution to LeetCode problem #422 — "Find All Duplicates in an Array" using JavaScript. The problem statement requires us to find all the elements that appear twice in a given array. The constraints r...Discussleetcode
Lakshit Chiranjiv SagarforLeeting-LCSleeting-lcs.hashnode.net·Apr 25, 2023Smallest Number in Infinite SetProblem Statement:- You have a set which contains all positive integers [1, 2, 3, 4, 5, ...]. Implement the SmallestInfiniteSet class: SmallestInfiniteSet() Initializes the SmallestInfiniteSet object to contain all positive integers. int popSmalles...Discuss·10 likes·68 readsDSA
VaishalifordataStructuresvaishalionlc.hashnode.net·Apr 23, 2023Leetcode #2653 Sliding Subarray BeautyLINK TO THIS QUESTION In this article, I will be solving Sliding Subarray Beauty from Weekly Contest 342 on LeetCode using C++. It's a nice question to practice problem-solving skills. My approach to solving this question is simple and easy to follow...Discuss·39 readsleetcode
Manik MehtaforMANIK MEHTAdmanika27.hashnode.net·Apr 23, 2023Finding element in Rotated ArrayRotated Array: Assume a sorted increasing array is there, we take the last element of this array and keep it in first place and the array is shifted, that means the index of last element will become 0 and element of further elements will be shifted b...Discusskunalkushwaha
Manik MehtaforMANIK MEHTAdmanika27.hashnode.net·Apr 23, 2023First and Last Position in sorted arrayNow as we had already covered Ceiling Number Question in previous blog, let’s do another question that will enhance the concept of Binary Search. Question: Find the first and last occurrence of an element of a non-decreasing sorted array. For Example...Discusskunalkushwaha
Aleksei ZagoskinforAleksei Zagoskinazagoskin.hashnode.net·Apr 22, 2023ChatGPT-4 outperformed 90% of developersThe title may sound bold and clickbait-ish, but it is what it is... A few days ago I stumbled upon a post on LinkedIn (unfortunately, I didn't save the link) in which a programmer demonstrated his solution to a LeetCode challenge. The code was fine a...Vinay Rangaraju and 1 other are discussing this2 people are discussing thisDiscuss·14 likes·73 readsai
Lakshit Chiranjiv SagarforLeeting-LCSleeting-lcs.hashnode.net·Apr 23, 2023Restore The ArrayProblem Statement:- A program was supposed to print an array of integers. The program forgot to print whitespaces and the array is printed as a string of digits s and all we know is that all integers in the array were in the range [1, k] and there ar...Discuss·10 likesDSA
ShrishforLeetcode problemsleetcode.hashnode.net·Apr 23, 2023Leetcode 133 Clone GraphIt is highly recommended that you try solving the problem independently by reading the specifications at https://leetcode.com/problems/clone-graph/ before looking at the solution. This will help improve your problem-solving abilities. Graphs are a wi...Discussleetcode
Vidit ManiyarforVidit's Blogviditmaniyar.hashnode.net·Apr 22, 2023LeetCode 100: Same TreeGiven the roots of two binary trees p and q, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurally identical, and the nodes have the same value. Approach: To solve this problem, we ...Discussleetcode