Ruby beats 100%/100%
\n# @param {Integer[]} stones\n# @return {Boolean}\ndef stone_game_ix(stones)\n  h = stones.map { _1 % 3 }.tally\n  c0 = h[0] || 0\n  c1 = h[1] || 0\n  c2 = h[2
```\n# @param {Integer[]} stones\n# @return {Boolean}\ndef stone_game_ix(stones)\n  h = stones.map { _1 % 3 }.tally\n  c0 = h[0] || 0\n  c1 = h[1] || 0\n  c2 = h[2] || 0\n  c0.even? ? (c1*c2 > 0) : (c1 - c2).abs > 2\nend\n```
[]