k-equals-n-returns-whole-array

Status: IN

In `largestSubarray`, when `k == len(nums)` the scan loop range is empty and the method correctly returns the entire array without special-casing.

Source: entries/2026/06/06/largest-subarray-length-k-solution.md

JSON