![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
咸鱼翻翻身
这个作者很懒,什么都没留下…
展开
-
反转单链表
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } };*/ class Solution { public: ListNode* ReverseList(ListNode* pHead)...原创 2019-12-11 17:19:51 · 82 阅读 · 0 评论 -
为什么不对?
题目描述 输入一个无序整数数组,调整数组中数字的顺序, 所有偶数位于数组的前半部分,使得所有奇数位于数组的后半部分。 要求时间复杂度为O(n)。 #include <iostream> #include <vector> std::vector<int> evenodd(std::vector<int> array){ int eve...原创 2019-12-10 11:25:56 · 86 阅读 · 0 评论 -
GCC on Windows
文件和文件夹命名不要有空格!!!!! MSys2能在windows上创建一个Linux环境。 MSys2 开源镜像站-中国科技大学 Index of /msys2/distrib/x86_64/ 软件包管理器:pacman pacman -S gcc pacman -Ss gcc 选择 mingw-w64-x86_64-gcc pacman -Smingw-w64-...原创 2019-03-24 17:45:30 · 377 阅读 · 0 评论