queue容器 Posted on 2020-04-22 | In STL Words count in article: 332 | Reading time ≈ 1 queue容器12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061//// Created by Jason on 2020/ ... Read more »
stack容器 Posted on 2020-04-22 | In STL Words count in article: 215 | Reading time ≈ 1 stack容器 1234567891011121314151617181920212223242526272829303132333435363738394041//// Created by Jason on 2020/3/29.///*3.4.3.1 stack构造函数 stack< ... Read more »
deque容器 Posted on 2020-04-22 | In STL Words count in article: 888 | Reading time ≈ 4 deque容器 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 ... Read more »
vector容器 Posted on 2020-04-22 | In STL Words count in article: 1.4k | Reading time ≈ 7 vector容器 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747 ... Read more »
string容器 Posted on 2020-04-22 | In STL Words count in article: 1.7k | Reading time ≈ 8 string 容器 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727 ... Read more »
155最小栈 Posted on 2020-04-22 Words count in article: 405 | Reading time ≈ 1 155最小栈下面是题目 下面是题目给出的模板123456789101112131415161718192021222324252627282930class MinStack {public: /** initialize your data structure here. */ ... Read more »
20有效的括号 Posted on 2020-04-22 Words count in article: 263 | Reading time ≈ 1 下面是题目 下面是题目给出的代码123456class Solution {public: bool isValid(string s) { }}; 我第一时间觉得既然(){} []需要相互配对,为什么不用map存储呢?123456 ... Read more »
1047删除字符串中所有的相邻重复项 Posted on 2020-04-22 Words count in article: 370 | Reading time ≈ 1 1047删除字符串中所有的相邻重复项下面是题目 下面是题目给出的模板12345class Solution {public: string removeDuplicates(string S) { }}; 这里给出两个解法,第一种是我自己想出来的原 ... Read more »