Grokking the Coding Interview: Patterns for Coding Questions
0% completed
Solution: Equal Subset Sum Partition
.....
.....
.....
Like the course? Get enrolled and start learning!
A
Anonymous
· 4 years ago
returning true/false with a ternary operator in the java solution :
dp[0][s] = (num[0] == s ? true : false)
seems a bit redundant since "nums[0] == s" itself returns a boolean.
Reading Progress
0%