07 2017 档案

摘要:在LeetCode上遇到这样返回值 public class Solution { public List<List<Integer>> levelOrder(TreeNode root) { }}List<List<Integer>> 即List的内容是List的类型,直接使用List<List< 阅读全文
posted @ 2017-07-22 21:33 岁月静好--lyr 阅读(912) 评论(0) 推荐(0)
摘要:多线程编程时用到函数库 pthread.h ,但是该函数库不是linux默认的函数库,所以编译c文件时,需要在目标代码文件后加上 -lpthread参数。 1.未加上 -lpthread 编译时,报错如下: 2.正确命令: gcc multiTread.c -lpthread 其中 multiTre 阅读全文
posted @ 2017-07-13 16:44 岁月静好--lyr 阅读(1259) 评论(0) 推荐(0)