相关分类: Java技术 C/C++ VB delphi
  • 【2017-06-20】Linux应用开发工程师C/C++面试问题记录

    参考之一:Linux 线程同步的三种方法 链接地址:http://www.cnblogs.com/eleclsc/p/5838790.html 简要回答: Linux下线程同步最常用的三种方法就是互斥锁、条件变量及信号量。 互斥锁通过锁机制来实现线程间的同步,锁机制是同一时刻只允许一个线程执行一个关键部分的...

    2018-06-17 22:24:36

  • P2966 [USACO09DEC]牛收费路径Cow Toll Paths

    题目描述 Like everyone else, FJ is always thinking up ways to increase his revenue. To this end, he has set up a series of tolls that the cows will pay when they traverse the cowpaths throughout the farm. The cows move from any of the N (1 = N = 250...

    2018-06-17 22:24:36

  • 13. Roman to Integer

    ...

    2018-06-17 22:24:35

  • P1144 最短路计数

    题目描述 给出一个N个顶点M条边的无向无权图,顶点编号为1~N。问从顶点1开始,到其他每个点的最短路有几条。 输入输出格式 输入格式: 输入第一行包含2个正整数N,M,为图的顶点数与边数。 接下来M行,每行两个正整数x, y,表示有一条顶点x连向顶点y的边,请注意可能...

    2018-06-17 22:24:31

  • pd_ds 之 hash

    http://attack.cf/?post=23 打个广告。。。。...

    2018-06-17 22:24:27

  • Leetcode: 94. Binary Tree Inorder Traversal

    ...

    2018-06-17 22:24:23

  • Leetcode: 91. Decode Ways

    ...

    2018-06-17 22:24:09

  • P1004 方格取数

    题目描述 设有N*N的方格图(N=9),我们将其中的某些方格中填入正整数,而其他的方格中则放 人数字0。如下图所示(见样例): A 0 0 0 0 0 0 0 0 0 0 13 0 0 6 0 0 0 0 0 0 7 0 0 0 0 0 0 14 0 0 0 0 0 21 0 0 0 4 0 0 0 0 15 0 0 0 0 0 0 14 0 0 0 0 0 0 0 0 0 0 0 0 0...

    2018-06-17 22:24:14

  • 一、数论算法

    (一)求最大公约数 思路:辗转相除法(欧几里德算法) 1 int Gcd( int a, int b) 2 { 3 if (a b) 4 { 5 int tmp= a; 6 a= b; 7 b= tmp; 8 } 9 while (a% b) 10 { 11 int tmp=a% b; 12 a= b; 13 b= tmp; 14 } 15 return b; 16 } gcd(以int为例) (二)求最小公倍数 思路...

    2018-06-17 22:24:13

  • Leetcode: 95. Unique Binary Search Trees II

    ...

    2018-06-17 22:23:50

2