摘要: 以“剑指offer 21 调整数组顺序使奇数位于偶数前面“为例说一下为位运算判断奇偶的方法。 class Solution { public: vector<int> exchange(vector<int>& nums) { int i = 0, j = nums.size() - 1; whil 阅读全文
posted @ 2022-12-20 15:40 弦合二挂 阅读(43) 评论(0) 推荐(0)