C++ 算法基礎知識總結

前言 打算刷leetcode,有些放不下Python和C++這兩種語言,常有些人說用Python刷算法是做弊。感受有些道理吧,這不認真複習一下C++的基礎。node 基礎 vector(變長數組) 頭文件:#include<vector> 使用:vector <typename> name; 訪問方式:下標訪問和迭代器訪問 迭代器訪問:web for(vector<int>::iterator i
相關文章
相關標籤/搜索