Smallest subarray to remove so remaining sum is divisible by K
Filed under Razorpay
The question
Given an array, find the length of the smallest subarray to remove so the remaining sum is divisible by K.
No write-up yet. Related questions below have one.
Related Razorpay questions
Collected from public candidate posts and coding forums. Updated Nov 2026.