会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
种树人
种一棵树最好的时间是十年前,其次是现在。
首页
新随笔
管理
2020年3月31日
leetcode 剑指offer 05 替换空格
摘要: 新建一个string a,对原string中的每一个字符(是char类型, 不会可以用auto),a +=,或者a.append 注意+=和append用法 append是不能直接用char做参数的,需要前面加个长度参数
阅读全文
posted @ 2020-03-31 14:22 种树人
阅读(94)
评论(0)
推荐(0)
编辑
c++ error: creating array of references( declaration of 'a' as array)
摘要: 错误程序:
阅读全文
posted @ 2020-03-31 11:30 种树人
阅读(842)
评论(0)
推荐(0)
编辑
leetcode 剑指offer 03 数组中重复的数字
摘要: hash 时间空间复杂度都是O(n) 下面是时间O(1) 空间O(n)的方法
阅读全文
posted @ 2020-03-31 10:27 种树人
阅读(113)
评论(0)
推荐(0)
编辑
公告