2016年2月23日

内存地址对其方式

摘要: 面试的时候遇到了这样一个关于结构体大小的问题。今天突然想了想。 struct node{ int r;//4 byte char t1[2]; //sizeof node = 14 // char t1[3]; sizeof(node) = 20 char t2[10];//10 byte }; 这 阅读全文

posted @ 2016-02-23 10:31 暴力的轮胎 阅读(180) 评论(0) 推荐(0) 编辑

leetcode143. Reorder List

摘要: Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→… You must do this in-place without altering the nodes' values. For 阅读全文

posted @ 2016-02-23 02:55 暴力的轮胎 阅读(826) 评论(0) 推荐(0) 编辑

导航