Shawn's Blog

  • Home
  • Tags
  • Categories
  • Archives
  • Search
  • Table of Contents
  • Overview

Shawn

若有恒,何必三更眠五更起;最无益,莫过一日曝十日寒。
393 posts
14 categories
117 tags

LeetCode 810. Chalkboard XOR Game

Posted on 2021-05-24 In LeetCode
1
2
3
4
const xorGame = (nums) => {
return (nums.length & 1) === 0 ||
nums.reduce((a, b) => a ^ b, 0) === 0;
};
# Math
LeetCode 1035. Uncrossed Lines
LeetCode 1707. Maximum XOR With an Element From Array
© 2026 Shawn
Powered by Hexo & NexT.Mist
0%