Find the maximum sum of a contiguous subarray of length k
Company: Hugging Face
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: easy
Interview Round: Other
Overview: Given an integer array that may hold negative values, return the largest sum of any contiguous subarray of exactly k elements. The problem tests the fixed-size sliding window pattern, constant-time updates of a running sum, and correct handling of all-negative input.