← Expedia questions

Print subarray with sum K

Filed under Expedia

Given an array of integers `nums` and an integer `k`, return the continuous subarray that sums up to `k`. If there are multiple valid subarrays, return any one of them. The array may contain both…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Expedia questions

Collected from public candidate posts and coding forums. Updated Nov 2026.