Sliding Window
Problem You are given an array of size N and an integer K. Your task:Find the maximum sum of any subarray of size exactly K Understanding the Problem Let’s take an example: arr = [2, 1, 5, 1, 3, 2] k

Search for a command to run...
Articles tagged with #programming-blogs
Problem You are given an array of size N and an integer K. Your task:Find the maximum sum of any subarray of size exactly K Understanding the Problem Let’s take an example: arr = [2, 1, 5, 1, 3, 2] k

When I first solved the 0s and 1s segregation problem, it felt simple. If you haven’t seen it, you can check it here:🔗 https://shubhamsinghbundela.hashnode.dev/segregate-0s-and-1s-in-place-sorting

While solving a Time-Sliced Task Scheduler problem, I realized that my understanding of the event loop, microtasks, and macrotasks was wrong. await does not automatically yield control to the event l

Regular Expressions (Regex) help us search, match, and manipulate text patterns inside strings. 1. Basic Format of Regex /pattern/flags Example: /hello/g / → Start and end of regex hello → pattern

When working with APIs in JavaScript, fetch() is one of the most commonly used Web APIs to make HTTP requests. Let’s break it down step by step 👇 1️⃣ Basic Syntax of fetch() fetch(url, options); ParameterTypeRequiredDescription urlstring✅ Ye...

What are Regular Expressions or regex in JavaScript? Regular expressions are patterns used to match character combinations in strings. What do Regular Expressions allow you to do? Regular expressions are used with the regex methods test() and exec() ...