摘要:
模拟面试的时候,遇到了这种题 确实是简单至极的题目 但是我 忘了栈用stl怎么写。又懒得用结构体写栈。 自己用vector造了一个栈。。。 我猜压根没像我这么写的 就很快乐 class Solution { public: bool isValid(string s) { if(s == "") r 阅读全文
posted @ 2021-01-21 23:32
然终酒肆
阅读(48)
评论(0)
推荐(0)
摘要:
class Solution { public: string longestCommonPrefix(vector<string>& strs) { if(!strs.size()) return ""; else if(strs.size() == 1 ) return strs[0]; els 阅读全文
posted @ 2021-01-21 22:23
然终酒肆
阅读(63)
评论(0)
推荐(0)

浙公网安备 33010602011771号