摘要:
0. The following content is from : https://developers.google.com/protocol-buffers/docs/overview 1. What are protocol buffers Protocol buffers are a fl 阅读全文
摘要:
0. 1. Array Its size is fixed; The size must be known at compile-time; 2. Examples const unsigned buf_size = 512; int ia[buf_size]; // an empty array, 阅读全文
摘要:
0. 1. syntax int foo[5]; // an array of int, an empty array int foo[5] = {16, 2, 77, 40, 123}; // an array of int with initilization int* ptr[5]; // a 阅读全文
摘要:
0. General speaking static is a keyword in C++, and it can be used in variables, functions, and members of a class. 1. static members of a class stati 阅读全文
摘要:
想在ubuntu 14.04 上开发C#, 能用的有Mono Mono is a runtime environment that can run .NET applications and that works on both Windows and Linux. It includes a C# 阅读全文
摘要:
0. 1. examples: def fib(n): if n == 1 or n == 2: result = 1 else result = fib(n-1) + fib(n-2) return result this is very in-efficient, O(2^n), and we 阅读全文
摘要:
42. Trapping Rain Water we need to find how many waters can each bar[i] trap. So we need to find the left peak from barto bar[i-1] and find the right 阅读全文