摘要:
344. Reverse String Write a function that takes a string as input and returns the string reversed. Example:Given s = "hello", return "olleh". 一开始写了一个代 阅读全文
摘要:
vector> flipAndInvertImage(vector>& A) { for (auto & row : A) reverse(row.begin(), row.end()); for (auto & row : A) for (int & i: row) i^=1; return A; } 阅读全文