Partition equal subset sum
Your task
Given an array of positive integers, determine whether it can be split into two subsets with equal sum. Return a boolean. The array has at least one element.
Examples
can_partition(nums: list[int]) -> boolExample 1
Input
can_partition([1, 5, 11, 5])Output
True