Grokking the Coding Interview: Patterns for Coding Questions
Vote

0% completed

​

Equal Subset Sum Partition (medium)

.....

.....

.....

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%


Vote for new content