**Problem Statement:**
Given an array of positive integers `nums` and a positive integer `target`, return the minimal length of a contiguous subarray of which the sum is greater than or equal to `target`. If there is no such subarray, return `0` instead.
**Hint / Expected Approach:**
Sliding window expand/shrink
**Edge Cases to Consider:**
- (1) Target larger than total sum
- (2) Single element equals target
- (3) All elements equal target