Continuous Subarray Sum

Medium

📝 Description

Check if array has continuous subarray of size ≥ 2 with sum multiple of k

Input Format

First line: space-separated array Second line: k

Output Format

true/false

Constraints

1 ≤ nums.length ≤ 10^5

🔍 Sample Input

23 2 4 6 7
6
            

✅ Sample Output

true
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run