摘要: 原文链接:https://www.cnblogs.com/inception6-lxc/p/8996050.html 在看书的时候有个往链表里添加节点的函数,代码中考虑到可能给出的头指针为空,并做另外一些处理。具体代码如下: [cpp] view plain copy print? #include 阅读全文
posted @ 2020-10-05 21:02 诗和远方* 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 代码: #include<iostream>#include<string> using namespace std; class Solution{public: string ReplaceBlank(string s) { int count=0; int len = s.size(); fo 阅读全文
posted @ 2020-10-05 01:25 诗和远方* 阅读(212) 评论(0) 推荐(0) 编辑