05 2016 档案

摘要:题目: Note: This is an extension of House Robber. After robbing those houses on that street, the thief has found himself a new place for his thievery so 阅读全文
posted @ 2016-05-31 16:48 CodingGirl121 阅读(110) 评论(0) 推荐(0) 编辑
摘要:题目: Compare two version numbers version1 and version2.If version1 > version2 return 1, if version1 < version2 return -1, otherwise return 0. You may a 阅读全文
posted @ 2016-05-30 16:19 CodingGirl121 阅读(139) 评论(0) 推荐(0) 编辑
摘要:题目: Given two arrays, write a function to compute their intersection. Example:Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2, 2]. Note: Each el 阅读全文
posted @ 2016-05-30 15:16 CodingGirl121 阅读(107) 评论(0) 推荐(0) 编辑
摘要:题目: Given two arrays, write a function to compute their intersection. Example:Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2]. Note: Each eleme 阅读全文
posted @ 2016-05-30 15:02 CodingGirl121 阅读(134) 评论(0) 推荐(0) 编辑
摘要:题目:You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the qualit 阅读全文
posted @ 2016-05-10 21:57 CodingGirl121 阅读(117) 评论(0) 推荐(0) 编辑
摘要:题目: Write a function to find the longest common prefix string amongst an array of strings. 题目解答: 求一组字符串的最长公共前缀。使用迭代器数组实现。思路异常的简单。 代码如下: class Solution 阅读全文
posted @ 2016-05-10 12:03 CodingGirl121 阅读(136) 评论(0) 推荐(0) 编辑
摘要:题目: Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation a 阅读全文
posted @ 2016-05-10 12:01 CodingGirl121 阅读(149) 评论(0) 推荐(0) 编辑
摘要:题目: Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Note: 题目解答:这个题目说了,会反复的求一段数字的和,但是默认数 阅读全文
posted @ 2016-05-10 11:36 CodingGirl121 阅读(117) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示