#3232
Find if Digit Game Can Be Won
newbie · 165 · lc easy +14 · 81.5% accepted · 199 likes · top 93%
Description
You are given array of positive integers nums. Alice picks either all single-digit or all double-digit numbers; Bob gets the rest. Alice wins if her total is strictly greater.
Return true if Alice can win.
Code
1
2
3