Shawn's Blog

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

Shawn

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

LeetCode 810. Chalkboard XOR Game

Posted on 2021-05-24 Edited on 2024-11-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
© 2024 Shawn
Powered by Hexo & NexT.Mist
0%