Shikhar·Jul 24Subarray sum equal to KThe first approach that comes to mind is to generate every subarray in O(n²) and, for each subarray, calculate its sum in O(n). If the sum…
Sadansubedi·Mar 10What is Subarray, Subsequences, Contiguous elements while solving leetcode problem?These three terms appear very frequently in LeetCode questions, so understanding them clearly will help you solve many problems.
InOperations Research BitbyAnish More·Feb 17Minimum Size Subarray SumWhen I first read this problem, the requirement looked simple: Find the smallest length of a contiguous subarray whose sum is greater than…
Bryant Jimin Son·Jul 7, 2025[Algorithm Problem]: Find the subarray that yields the maximum value of sum given an array of…Here is a classical algorithm problem that looks extremely simple at a surface.