We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
解题思路中,第三段部分:
将 diff 作为区分两个元素的依据,一定有一个元素对 diff 进行异或的结果为 0,另一个结果非 0。设不相等的两个元素分别为 z 和 k,遍历数组所有元素,判断元素与 diff 的异或结果是否为 0,
示例答案代码为:
if ((num & diff) == 0)
根据下方的示例代码和牛客官方题解,上方的“异或”应改为“按位与”
The text was updated successfully, but these errors were encountered:
No branches or pull requests
解题思路中,第三段部分:
示例答案代码为:
根据下方的示例代码和牛客官方题解,上方的“异或”应改为“按位与”
The text was updated successfully, but these errors were encountered: