- 博客(6)
- 收藏
- 关注
原创 leetcode--[编程题]same-tree
题目描述:Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical and the nodes have the same value. ...
2018-06-30 21:35:55 271
原创 Linux基础(四)——基础文件IO
练习open/read/write/close等文件相关系统调用接口,纵向对比fd与FILE结构体 对之前编写的自主shell进行修改,使其支持输入/输出/追加重定向 编写简单的add/sub/mul/div函数,并打包成动/静态库,并分别使用。 写一篇博客, 总结上述内容. 作业以链接形式提交(代码也是在博客中体现). ...
2018-06-29 21:21:53 271
原创 Centos7.5下pip安装第三方库时出现提示:You are using pip version 8.1.2, however version 10.0.1 is available.
今天我在安装第三方库Django框架时出现的完整的提示为: You are using pip version 8.1.2, however version 10.0.1 is available. You should consider upgrading via the ‘pip install –upgrade pip’ command. 这句话的意思是“您正...
2018-06-29 15:56:44 26886 3
原创 leetcode--remove-nth-node-from-end-of-list(移除链表中的倒数第N个节点)
题目描述: given a linked list,remove the n th node from the end of list and return its head. for example,given linked list:1->2->3->4->5,and n=2,output: 1->2->3-&a
2018-06-26 10:51:11 252
原创 Centos 6.5下vim的简单配置(行号,高亮,光标所在行的特别显示等等......)
&nbsp &nbsp &nbsp在介绍Centos 6.5的vim基本配置之前,我想先介绍以下Centos 7环境下的vim配置,因为我发现现在大多数人都在追求更新版本和更好用的系统和软件,好了,不多说废话了,开始进入今天的正题。...
2018-06-26 08:45:29 2039 1
原创 每日一题--空格替换
//1.题目把字符串中空格替换成 %20 //分析: //循环遍历字符串,统计字符串个数 //根据空格个数延长字符串 //遍历字符串,替换空格符 void* repalceSpace(char *str ,int len) { int count = 0; char* tmp = str; while (*tmp!='\0') { if (*tmp...
2018-06-17 10:40:08 155
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人