terminal
Elevo
/
ESC
Login
Initiate Registration
code
Topics
corporate_fare
Companies
history
History
arrow_back
Back to Challenges
#416
Partition Equal Subset Sum
Medium
Acceptance 0%
Editorial
description
Problem Description
Given an integer array `nums`, return `true` if you can partition the array into two subsets such that the sum of the elements in both subsets is equal or `false` otherwise.
checklist
Constraints
1 <= nums.length <= 200
1 <= nums[i] <= 100
science
Examples
Case #1
In:
nums = [1,5,11,5]
Out:
true
Case #2
In:
nums = [1,2,3,5]
Out:
false
Mastery Tags
Arrays
Dynamic Programming
Hiring Companies
Amazon
Google
Meta
code
Integrated IDE
Python 3
expand_more
C
C++ 17
Java
JavaScript
Python 3
C
C++ 17
Java
JavaScript
Python 3
refresh
class Solution: def canPartition(self, nums: list[int]) -> bool: pass
Login to Compile
Processing
terminal
Debug Output
home
Home
extension
Practice
robot_2
login
Sign In
account_circle
Menu
code_blocks
Coding
psychology
Aptitude
Navigation
close
Login
Registration