Exercises/#131 Minimum Size Subarray Sum
#131

Minimum Size Subarray Sum

MediumπŸ“¦ Arrays
80 XP

Problem

Given an array and target, find the minimum length of a contiguous subarray whose sum β‰₯ target. Return 0 if none.

Examples

Input: target=7, nums=[2,3,1,2,4,3]
Output: 2 ([4,3])

Input: target=4, nums=[1,4,4]
Output: 1
arraysliding-windowtwo-pointer
AI Assistantβ€” powered by AI

Unlock hints progressively β€” start gentle, go deeper only if needed.

πŸ’‘

Level 1: Gentle Nudge

A subtle direction

πŸ—ΊοΈ

Level 2: Approach

The algorithm to use

πŸ”

Level 3: Detailed

Step-by-step guidance

131 / 150

Your Solution

⚑ JavaScript

to save progress and use AI features