Back to course home
0% completed
Vote For New Content
returning true/false with a ternary operator in the java solution :dp[0][s] = (n...
Jason
Jul 25, 2022
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.
2
0
Comments
Comments
On this page