136 Single Number 骑猪看日落 2022-08-04 09:17 105阅读 0赞 N^N=0 public class Solution { public int singleNumber(int[] nums) { int result = nums[0]; for (int i = 1; i < nums.length; i++) { result = result ^ nums[i]; } return result; } }
还没有评论,来说两句吧...