摘要: Write a function to find the longest common prefix string amongst an array of strings. 1 class Solution { 2 public: 3 string longestCommonPrefix(v... 阅读全文
posted @ 2015-04-16 19:41 vincently 阅读(143) 评论(0) 推荐(0) 编辑
摘要: Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.Update (2014-11-02):The si... 阅读全文
posted @ 2015-04-16 17:20 vincently 阅读(145) 评论(0) 推荐(0) 编辑
摘要: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Pana... 阅读全文
posted @ 2015-04-16 17:05 vincently 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 进程的经典定义是一个执行中的程序的实例。注意,一个程序运行了两遍,则算作两个进程。操作系统能够使他们共享代码,因此只有一个副本放在内存中。 在传统的操作系统中,每个进程都有一个地址空间和控制线程。不过,经常存在在同一个地址空间中准并行运行多个控制线程的情形 系统中的每个程序都是运行在某个进程的上下文 阅读全文
posted @ 2015-04-16 11:20 vincently 阅读(473) 评论(0) 推荐(0) 编辑