class Solution { /** *@param a, b: Two integer *return: An integer */ public static int bitSwapRequired(int a, int b) { // write your code here return Integer.bitCount(a ^ b); } };
没有评论:
发表评论