Partition To K Equal Sum Problem
Partition To K Equal Sum Problem — ExecCode Medium DSA Practice
Solve the Partition To K Equal Sum problem on ExecCode. Free online medium DSA practice in Arrays - Basics. Write and run code in Java, C++, Python — no signup required to run.
Problem description
Practice companion for CodeFlow partition-to-k-equal-sum.
Examples
Input {"nums": [4, 3, 2, 3, 5, 2, 1], "k": 4}; Output true. Input {"nums": [2, -3, 8, -8, 15, 1], "k": 1}; Output false. Input {"nums": [0, 20, -4, 12, 16, 18, 16, 9], "k": 9}; Output false
Constraints
1 ≤ n ≤ 10^5
Practice Partition To K Equal Sum free on ExecCode. Browse DSA problems, topic map, and placement guides.