Forhad Hossaincodeforhad.hashnode.dev·5 hours agoExtracting Unique Categories from Product Data in JavaScriptIn web development, particularly in e-commerce websites, you often need to handle product data efficiently. One common task is to extract unique categories from a list of products. In this blog post, we'll explore how to achieve this using JavaScript...DiscussJavaScript

Jay Choukseyjayjava.hashnode.dev·a day agoFind Pivot IndexIntroduction Today, I tackled another intriguing problem from LeetCode 75: Find Pivot Index. This easy-level question requires an understanding of prefix sums and arrays. The goal is to find the pivot index where the sum of the numbers to the left of...DiscussJava

Riyaz Nabiyullariyaz-blog.hashnode.dev·Jul 15, 2024Data Structures - Java: Syntax, Use Case, Time and Space Complexity1. Arrays Syntax: // Declaration and initialization int[] array = new int[10]; int[] array = {1, 2, 3, 4, 5}; // Accessing elements int element = array[0]; // Modifying elements array[1] = 10; Use Cases: Fixed-size collections, fast access by inde...DiscussDSA-Javadata structures

Anower Hossainanower77.hashnode.dev·Jul 14, 2024Segment Tree-1Segment Tree Basic Node Divide With Segment Tree Node Numbering (Segment Tree) // build (node, begin, end) build (1, 1, N) { L = 2xN, R = (2xN) + 1 // Node Number Calculate mid = (begin + end) / 2 left = (L, begin, mid) left = (R, ...Discuss·70 readssegment-tree

Jay Choukseyjayjava.hashnode.dev·Jul 14, 2024Find the Highest AltitudeIntroduction Today, I tackled an interesting problem from LeetCode 75: Find the Highest Altitude. This easy-level question requires knowledge of arrays and prefix sums. It involves finding the highest altitude reached during a biker's road trip. Let'...DiscussJava

Nadim Anwarnadim.in·Jul 14, 2024What Is Big O Notation? A Beginner's ExplanationBig O notation is a mathematical concept used to describe an algorithm's performance or complexity. It shows how the runtime or space needs of an algorithm increase as the input size grow. If the pace of an algorithm is not known, it will be difficul...DiscussData Structures and Algorithms (DSA)#BigONotation

Vashishth Gajjarvashtech.hashnode.dev·Jul 13, 2024Chapter 5: Advanced Array Methods and Object ManipulationWelcome back to "Mastering JavaScript"! In Chapter 4, we explored the basics of objects and arrays, and essential data structures in JavaScript. Now, let's dive deeper into advanced array methods and object manipulation techniques. 5.1 Advanced Array...DiscussMastering JavaScriptJavaScript

Vashishth Gajjarvashtech.hashnode.dev·Jul 13, 2024Chapter 4: Objects and ArraysWelcome back to "Mastering JavaScript"! In Chapter 3, we explored functions and scope, building a strong foundation for our JavaScript journey. Now, let's dive into objects and arrays, two fundamental data structures that you'll use frequently in you...DiscussMastering JavaScriptarray

Jay Choukseyjayjava.hashnode.dev·Jul 12, 2024Rearrange Array Elements by SignIntroduction Today, I tackled a LeetCode daily challenge problem with a medium difficulty level: Rearrange Array with Alternating Signs. The task involves rearranging an array to ensure that every consecutive pair of integers has opposite signs, whil...DiscussJava

Jay Choukseyjayjava.hashnode.dev·Jul 12, 2024Can Place FlowersLeetCode 75 Introduction Continuing my journey of writing daily blogs, today I tackled another interesting problem from LeetCode 75: Can Place Flowers. This problem involves determining if a certain number of new flowers can be planted in a flowerbed...DiscussJava