SPShaurya Petheinrshaurya.hashnode.dev·May 1 · 4 min readGenerator Functions in PythonWhat are Generators? In Python, a generator is a special type of function that returns a generator object which is an iterator. A generator produces values one at a time, pausing until the next value 00
SPShaurya Petheinrshaurya.hashnode.dev·Mar 26 · 4 min readHow I setup devcontainers for heavy development projects and why I'll never switch backWhy I Finally Started Using Devcontainers for Heavy Development Setups I had heard about devcontainers before, but never actually needed them fir a project. That changed when I started working on a la00
SPShaurya Petheinrshaurya.hashnode.dev·Aug 18, 2024 · 6 min readSearch in Rotated ArrayThis is part two of the DSA Series where we'll solve the 'Search in Rotated Array Problem'. Problem Statement Assume there is an integer array nums sorted in ascending order (with distinct values). Prior to being passed to your function, nums is poss...00
SPShaurya Petheinrshaurya.hashnode.dev·Aug 10, 2024 · 4 min readMaximum Subarray Sum using Kadane's AlgorithmThis is part 1 of the DSA series where we will be going through the Kadane's Algorithm to solve the 'Maximum Subarray Sum' problem. Let us first understand what a subarray is. Consider the following array of integers: int arr[] = {7,2,0,5}; A subarra...00
SPShaurya Petheinrshaurya.hashnode.dev·Aug 10, 2024 · 1 min readDSA with JavaThis blog serves as a table of contents providing solutions to various problems while learning Data Structures & Algorithms. We will be using Java for this series, feel free to implement it in your own language. Maximum Subarray Sum Search in Rotat...00