當場思路: 我自己的思路本來想用bit做, 覺得一定能做, 但后來發現用++更快, 就變成了當場的思路. 事后一直想用Bit: 但是只能檢測從第三位數字起, 后面數字是否全為Upper或者全為Lower 沒必要用&了因為會直接跳出循環. 這是Brute Force的方法呀! 巧用自帶method: https://discuss.leetcode.com/topic/79911/simple-java-solution-o-n-time-o-1-space array1.equals(array2) is the same as array1 == array2is it the same array. Arrays.equals(array1, array2) compares the contents of the arrays.