Akarsh Jainakarshjain.hashnode.dev·Aug 29, 2023The Prefix Sum: A Simple but Efficient Data StructureIf you've started to venture into the world of programming, you might have come across situations where you need to work with parts of a list, even though you might not realize it just yet. No worries if this sounds new – I'm here to walk you through...Discuss#PrefixSum
Nilesh Saininileshsaini.hashnode.dev·May 30, 2023Find Pivot IndexThere are countless ways to approach this problem and optimize your solution. In this article, we’ll explore one of those strategies to tackle this problem. Let’s see the problem statement first. Problem Statement: Given an array of integers nums, c...DiscussJavaScript
Nilesh Saininileshsaini.hashnode.dev·May 7, 2023Product of Array Except SelfThis problem challenges us to find the product of all elements in an array except for the current element, without using division. While the brute-force approach of computing the product of all elements and then dividing by each element is straightfo...Discuss·27 readsJavaScript
Siddharth Tambattechtronic.hashnode.dev·May 1, 2023The Magic of Prefix Array: Boosting Your Programming Skills📍Introduction A Prefix array is a simple yet effective tool in computer programming. It helps to minimize the repeated calculations done in an array and reduces the time complexity of your program. 📍What is a Prefix Array? A Prefix Sum Array is a c...Discuss·10 likes·78 readsData Structures & Algorithmsprefix-sum
Ugur Elverenblog.ugurelveren.com·Feb 25, 2023Arrays: Prefix Sum TechniqueHello there! The prefix sum technique involves creating an array where the prefix[i] is the sum of all elements up to index i. This technique can also be referred to as the cumulative sum, inclusive scan, or simply scan. prefix[0] = nums[0] prefix[1]...Discuss·41 readsData Structures and Algorithms: From Arrays To Treesarrays
Shamima Hossainshamimabreaksstuff.hashnode.dev·Dec 4, 2022Algorithmic problems: Minimum Average DifferenceAnother Medium category problem which I had a lot of fun solving. The fourth problem of the December leetcoding challenge https://leetcode.com/problems/minimum-average-difference/ is another way to flex your array skills. This challenge tests how you...Discuss·57 readsalgorithms
Sandeep ChauhanforLeetcode Practiceleetcodes.hashnode.dev·Jun 26, 20221423. Maximum Points You Can Obtain from Cards (26/06/2022)Problem: There are several cards arranged in a row, and each card has an associated number of points. The points are given in the integer array cardPoints. In one step, you can take one card from the beginning or from the end of the row. You have t...Discuss·31 readsLeetcode Dailyarray