摘要: 题目描述:Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in th... 阅读全文
posted @ 2015-11-12 20:30 scottwang 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 题目描述:Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).You are given a target... 阅读全文
posted @ 2015-11-12 19:44 scottwang 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://blog.sina.com.cn/s/blog_5b9b4abe01016zw0.htmlJAVA中有两种方法:JAVA方法和本地方法JAVA方法是由JAVA编写的,编译成字节码,存储在class文件中本地方法是由其它语言编写的,编译成和处理器相关的机器代码本地方法保存在动态链... 阅读全文
posted @ 2015-11-12 10:37 scottwang 阅读(259) 评论(0) 推荐(0) 编辑