上一页 1 2 3 4 5 6 7 8 ··· 37 下一页

2015年3月27日

实习面试总结(只写了昨天腾讯的面试和拿到offer的一个小公司, 有空再把前面的补上吧)

摘要: 一个月来面了大大小小的公司有近10个,还是总结一下吧,希望对大家有点用处。我想说的是,大学四年,如果不会继续读研深造,那么你需要做的不仅仅是疯狂的做项目,或者单独的学算法。最好的方式就是都了解一点,但是要有自己擅长的东西,面试的问题无非就是那几个方面,比如C/C++(当然如果你的主要语言和我一样是C... 阅读全文

posted @ 2015-03-27 13:19 Stomach_ache 阅读(949) 评论(3) 推荐(0) 编辑

2015年3月15日

redis-cli启动问题

摘要: 首先需要找到redis的所在目录,然后将redis.conf复制到/etc/redis.conf另外需要将redis.conf文件中的daemonize no 设置为daemonize yes.执行命令: redis-server /etc/redis.conf然后执行:redis-cli 阅读全文

posted @ 2015-03-15 12:33 Stomach_ache 阅读(554) 评论(0) 推荐(0) 编辑

2015年2月12日

关于结构体内存对齐

摘要: 对齐规则如下:1、 结构体的大小等于结构体内最大成员大小的整数倍2、 结构体内的成员的首地址相对于结构体首地址的偏移量是其类型大小的整数倍,比如说double型成员相对于结构体的首地址的地址偏移量应该是8的倍数。3、 为了满足规则1和2编译器会在结构体成员之后进行字节填充!注:1. 内存对齐只是一... 阅读全文

posted @ 2015-02-12 11:46 Stomach_ache 阅读(167) 评论(0) 推荐(0) 编辑

memcpy 和 memmove

摘要: memcpy 原形为:void *memcpy(void *dest, const void *src, size_t n);其用于内存空间的拷贝,但是并没有考虑内存重叠问题。memmove原形为:void * memmove ( void * dst,const void * src,size_t... 阅读全文

posted @ 2015-02-12 11:43 Stomach_ache 阅读(129) 评论(0) 推荐(0) 编辑

typeof, offsetof, container_of宏

摘要: container_of宏实现如下:1 #define container_of(ptr, type, member) ({ \ 2 const typeof( ((type *)0)->member ) *__mptr = (ptr); \ 3 (type *)... 阅读全文

posted @ 2015-02-12 11:31 Stomach_ache 阅读(272) 评论(0) 推荐(0) 编辑

2015年2月10日

vim之buffer 与 折叠

摘要: 常用的折叠命令有:zfzizozczdzf10j从当前行向下10行创建折叠(共11行),zfj创建两行的折叠常用的还有zf%。进行多文件编辑时,会涉及到buffer的使用::ls 查看现有的buffer:bn 切换到下一个buffer:bp 切换到上一个buffer:b[num] 切换到第num个b... 阅读全文

posted @ 2015-02-10 16:00 Stomach_ache 阅读(155) 评论(0) 推荐(0) 编辑

2015年1月25日

Make the Most (Hackerrank Codeagon)

摘要: 题目链接Problem StatementCodenationis sendingNof its employees to a High Profile Business Conference and the goal is to cover maximum number of presentati... 阅读全文

posted @ 2015-01-25 15:42 Stomach_ache 阅读(289) 评论(0) 推荐(0) 编辑

2015年1月22日

Java 普通代码块,构造代码块,静态代码块

摘要: 具体百度。。。这里只记下,构造构造代码块在构造函数之前执行,每创建一个对象则执行一次。静态代码块属于类,而不是对象,只执行一次。 阅读全文

posted @ 2015-01-22 16:58 Stomach_ache 阅读(141) 评论(0) 推荐(0) 编辑

2015年1月20日

Schedule(Hackerrank Quora Haqathon)

摘要: 题目链接Problem StatementAt Quora, we run all our unit tests across many machines in a test cluster on every code push.One day, we decided to see if we co... 阅读全文

posted @ 2015-01-20 19:39 Stomach_ache 阅读(238) 评论(0) 推荐(0) 编辑

2015年1月14日

大数加减法实现

摘要: 传送门 1 /* 2 * input: an expression seperated by a '-' or '+'; for example: a-b, a+b 3 * ouput: the answer of the input expression 4 */ 5 #includ... 阅读全文

posted @ 2015-01-14 15:16 Stomach_ache 阅读(191) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 ··· 37 下一页

导航