SSSk Shoyebinskshoyebjavascript.hashnode.dev·2h ago · 3 min readMaximum Number of Non-Overlapping Substrings | Java Solution | GreedyGiven a string s of lowercase letters, you need to find the maximum number of non-empty substrings of s that meet the following conditions: The substrings do not overlap, that is for any two substrin00
ASAbirami Sriinabi-blog.hashnode.dev·16h ago · 6 min readDay 11 of My 30-Day DSA Journey - Stack PatternToday I practiced the Stack data structure by solving five LeetCode problems using JavaScript. The problems covered different real-world uses of stacks such as matching brackets, tracking minimum valu00
ASAbirami Sriinabi-blog.hashnode.dev·1d ago · 12 min readDay 10 of My 30-Day DSA Journey - Sliding Window PatternDay 10 of my DSA journey with JavaScript focuses on Variable-Size Sliding Window. In Day 7, I learned the fixed-size Sliding Window pattern, where the window size was always k. Today, I worked with a 00
ZNZenub Naqviinzenubnaqvi.hashnode.dev·4d ago · 7 min readThe Line of Code That Broke Java's Standard Library for Nine YearsHere's a question first: if I gave you a sorted list of 8 billion numbers—roughly the population of Earth—and asked you to find one specific number, how many comparisons would you need in the worst ca00
AAnnetinhtml-portfolio.hashnode.dev·4d ago · 7 min readSliding Window Pattern in DSA: A Beginner-Friendly GuideWhen I first started solving array and string problems, Sliding Window was one of the patterns that felt confusing. The code itself is usually short, but understanding when to move the window, what to00
ASAbirami Sriinabi-blog.hashnode.dev·6d ago · 12 min readDay 9 of My 30-Day DSA Journey - Binary Search PatternsDay 9 of my DSA journey with JavaScript focuses on Binary Search. Binary Search is one of the most important searching techniques for sorted data. Instead of checking every element one by one, it repe00
ASAbirami Sriinabi-blog.hashnode.dev·Sep 10 · 14 min readDay 8 of My 30-Day DSA Journey - Sliding Window PatternToday, I continued learning one of the most important DSA patterns for string and array problems: Sliding Window. Sliding Window is useful when a problem asks us to find something inside a continuous 00
ASAbirami Sriinabi-blog.hashnode.dev·Sep 8 · 8 min readDay 7 of My 30-Day DSA Journey - Sliding Window PatternDay 7 of my DSA journey with JavaScript focuses on one of the most useful array and string patterns: Sliding Window. Today, I solved two LeetCode problems: Maximum Average Subarray I Maximum Number 00
ASAbirami Sriinabi-blog.hashnode.dev·Sep 6 · 11 min readDay 6 of My 30-Day DSA Journey — Two Pointers & Array PatternsDay 6 of my DSA journey focuses on the Two Pointers pattern and how it can be used to solve different types of array and string problems efficiently. Today, I solved 5 LeetCode problems: Container Wi00
ASAbirami Sriinabi-blog.hashnode.dev·Sep 5 · 9 min readDay 5 of My 30-Day DSA Journey — Two PointersDay 5 of my 30 Days of DSA with JavaScript journey. Today, I learned and practiced the Two Pointers pattern. The two-pointer technique uses two indexes to traverse an array or string efficiently. Depe00