</>OfferRetriever
DashboardDiscuss
NEW

Halloween Sale

Unlock all premium questions for over 30% off

$10.42$7.08/mo

--

:

--

:

--

:

--

Get this deal
Back to Goldman Sachs Questions

Longest Subarray Within Limit

Medium

Question

The input is an array a holding positive integers, together with a limit k. Find how long the longest subarray of a can be while its sum stays at or below k. Should all candidates exceed k, the result is 0. ...

Asked at:Goldman Sachs

More Goldman Sachs interview questions

All Goldman Sachs interview questions
OfferRetriever

Master technical interviews with real questions from top companies. Build your confidence and career.

PRODUCT
PricingDashboardDiscussOfferRetriever vs LeetCodeCompare
LEGAL

© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.