- 博客(7)
- 资源 (4)
- 收藏
- 关注
原创 fork()子进程与父进程执行打印多少个-号问题
//原题是求下列程序会打印多少个-号:#include #include #include #include int main(){int fpid; for(int i=0;i<2;i++){ printf("- %d\n",i); printf("%d %d %d\n",getppid(),get
2017-09-21 11:47:46 1072
转载 假设在 n 进制下,下面的等式成立,n 的值是? 567*456=150216
A.9B.12C.13D.18假设在n进制下,下面的等式成立,n的值是(),567*456=150216.完全是考数学的题目:http://topic.csdn.NET/u/20100319/14/ffd0920a-b256-48d8-8d86-da36a3bfab8d.html做不出来也就算了,实际上,IT公司好多这样子的题目(腾讯除外),难怪考出来,成绩很差都可
2017-08-26 14:28:39 647
转载 makefile的语法及写法
0 Makefile概述 -------------------------------------------------------------------------------- 什么是makefile?或许很多Winodws的程序员都不知道这个东西,因为那些Windows的IDE都为你做了这个工作,但我觉得要作一个好的和professional的程序员,makefile还是要
2017-04-21 16:05:41 283
原创 求Maximum Depth of Binary Tree 广度优先遍历算法
#include#include#include#include#define ElemType charusing namespace std;typedef struct BiTNode{ ElemType data; struct BiTNode *lchild,*rchild;}BiTNode,*BiTree;void CreateBiTree(BiTree &T){
2017-03-01 21:16:25 277
原创 Reverse Bits
Description:Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return 964176192 (represented in binary
2017-02-22 15:43:11 319
原创 Single Number 2
Description:Given an array of integers, every element appears three times except for one, which appears exactly once. Find that single one.Note:Your algorithm should have a linear runtime complexity. ...
2017-02-21 22:51:54 184
转载 Single Number 3
Description:Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements that appear only once.For exampl
2017-02-21 22:47:25 266
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人