Dsa
Math
Medium
Equal Partition Find
You are given a list of integers. Your task is to find whether it's possible to partition the list into two subsets such that the sum of both subsets is equal. If possible, return 'Yes', otherwise return 'No'.
Input format:
- The first line contains an integer N, the number of integers.
- The second line contains N space-separated integers.
Output format:
- A single line string: 'Yes' or 'No'.
Example:
Input:
4
1 5 11 5
Output:
Yes
Key concepts
mathcombinatoricsgreedy algorithms
Practise this out loud — free
Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.
🎙 Practise this question now