摘要:
两个相同的数异或为0 任何数与0异或都为自身 package leetcode; public class demo_136 { public int singleNumber(int[] nums) { int num=0; //异或运算 for(int n:nums) { num=num^n; 阅读全文
posted @ 2021-07-16 22:10
一仟零一夜丶
阅读(39)
评论(0)
推荐(0)
摘要:
package leetcode; public class demo_134 { public int canCompleteCircuit(int[] gas, int[] cost) { //如果gas数组小于cost肯定不会通过 if(sumArray(gas)<sumArray(cost) 阅读全文
posted @ 2021-07-16 16:46
一仟零一夜丶
阅读(38)
评论(0)
推荐(0)
浙公网安备 33010602011771号