class Solution { public: /** * * @param A int整型一维数组 * @param n int A数组长度 * @return int整型 */ int singleNumber(int* A, int n) { // write code here unordered_map<int, int> map; // 统计每个数字出现的次数 for (int i = 0; i < n; i++) { map[A[i]]++; } // 找到并返回只出现一次的数字 for (const auto& pair : map) { if (p...