2016年6月4日
摘要:
(1) 引用总是指向一个对象,没有所谓的 null reference .所有当有可能指向一个对象也由可能不指向对象则必须使用 指针. 由于C++ 要求 reference 总是指向一个对象所以 reference要求有初值. String & rs = string1; 由于C++ 要求 refe
阅读全文
posted @ 2016-06-04 16:52
浩然119
阅读(287)
推荐(0)
摘要:
1. what is thread safe? 线程安全就是说多线程访问同一代码,不会产生不确定的结果。编写线程安全的代码是低依靠线程同步。线程安全: 在多线程中使用时,不用自已做同步处理线程不安全: 在多线程中使用时,必须做线程同步,不然会有未知后果 进程和线程的区别? 如何启动线程,最有效终止线
阅读全文
posted @ 2016-06-04 16:08
浩然119
阅读(313)
推荐(0)
摘要:
All contents have already been moved to haoran119/c-cpp (github.com). interview/interview summary of C and CPP at master · haoran119/interview (github
阅读全文
posted @ 2016-06-04 15:43
浩然119
阅读(756)
推荐(0)
2016年6月2日
摘要:
Multi-threading - C++ Reference http://www.cplusplus.com/reference/multithreading/ C++ 多线程 | 菜鸟教程 http://www.runoob.com/cplusplus/cpp-multithreading.h
阅读全文
posted @ 2016-06-02 22:04
浩然119
阅读(152)
推荐(0)
2016年6月1日
摘要:
面试总结之Google - 浩然119 - 博客园 (cnblogs.com) Google Pro Tip: Use Back-of-the-envelope-calculations to Choose the Best Design - High Scalability - http://hi
阅读全文
posted @ 2016-06-01 19:12
浩然119
阅读(491)
推荐(0)
2016年5月25日
摘要:
All contents are moved to interview/学习笔记之LeetCode at main · haoran119/interview (github.com). LeetCode - The World's Leading Online Programming Learni
阅读全文
posted @ 2016-05-25 21:14
浩然119
阅读(922)
推荐(0)
2016年5月20日
摘要:
https://leetcode.com/problems/top-k-frequent-elements/ Given a non-empty array of integers, return the k most frequent elements. For example,Given [1,
阅读全文
posted @ 2016-05-20 23:43
浩然119
阅读(860)
推荐(0)
摘要:
https://leetcode.com/problems/power-of-four/ Given an integer (signed 32 bits), write a function to check whether it is a power of 4. Example:Given nu
阅读全文
posted @ 2016-05-20 19:19
浩然119
阅读(223)
推荐(0)
摘要:
Linux对于每个用户,系统限制其最大进程数。为提高性能,可以根据设备资源情况,设置各linux 用户的最大进程数。可以用ulimit -a 来显示当前的各种用户进程限制。 Linux/Unix ulimit命令详解http://www.linuxidc.com/Linux/2012-10/7278
阅读全文
posted @ 2016-05-20 10:50
浩然119
阅读(234)
推荐(0)
摘要:
https://leetcode.com/problems/reverse-vowels-of-a-string/ Write a function that takes a string as input and reverse only the vowels of a string. Examp
阅读全文
posted @ 2016-05-20 00:48
浩然119
阅读(335)
推荐(0)