摘要:
已经不知道这种错误出现了几次了,return并不表示输出,不表示输出,不表示输出,不表示输出 #include<iostream> #include<vector> using namespace std; int dfs(int n) { vector<int>dp; for (int i = 0 阅读全文
摘要:
请实现一个函数,把字符串 s 中的每个空格替换成"%20"。 输入:s = "We are happy." 输出:"We%20are%20happy." 创建新的string a,讲string s中的字符逐个赋给a,当遇到' '时,赋'%'、'2'、'0'; class Solution { pu 阅读全文