Available question text
Given an integer array and an integer k, produce a new array where each element is the sum of k consecutive elements around the original array (k>0 sums the next k elements, k<0 sums the previous |k| elements, k=0 yields 0), with indices wrapping circularly; solve efficiently using sliding-window or prefix-sum techniques to handle wraparound.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2757. Generate Circular Array Values
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source