摘要:
中间temp temp = a; a = b; b = temp; 相加减 a = a + b; b = a - b; a = a - b; 或 a = a - b; b = a + b; a = b - a; 位操作 a = a ^ b; b = a ^ b; a = a ^ b; 阅读全文
摘要:
Given an array nums of size n, return the majority element. The majority element is the element that appears more than ⌊n / 2⌋ times. You may assume t 阅读全文
摘要:
A parentheses string is valid if and only if: It is the empty string, It can be written as AB (A concatenated with B), where A and B are valid strings 阅读全文