戊子仲秋
戊子仲秋
全部文章
分类
题解(1)
归档
标签
去牛客网
登录
/
注册
戊子仲秋的博客
全部文章
(共6篇)
题解 | #栈的压入、弹出序列#C++辅助栈的简单实现
class Solution { public: bool IsPopOrder(vector<int> pushV,vector<int> popV) { stack<int> st; int i = 0; ...
2023-04-16
1
244
题解 | #最长公共子串#C++动态规划
动态规划: #include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; string get_str(string...
C++
2023-04-10
0
546
题解 | #打印日期# C++简单方法
#include <iostream> using namespace std; int month[] = {0, 31, 28, 31, 30, 31, 30,31, 31, 30, 31, 30, 31}; int get_mday(int year, int mon) { ...
2023-04-07
1
299
题解 | #跳石板#C++解法 动态规划
#include <climits> #include <iostream> #include <vector> using namespace std; //求约数 void get_y(vector<int>& v, int x) { f...
2023-04-03
1
348
题解 | #倒置字符串#C++解法,通过reverse逆置
#include <iostream> #include <string> #include <algorithm> using namespace std; int main() { string s; getline(cin, s); ...
2023-03-22
0
349
题解 | #删除公共字符#C++暴力解法,简单易懂
#include <iostream> using namespace std; #include <string> int main() { string s; string c; getline(cin, s); getline(cin...
2023-03-21
1
549