上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 33 下一页
摘要: The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.11is read off as"tw... 阅读全文
posted @ 2015-10-09 13:17 Hygeia 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Given a list of non negative integers, arrange them such that they form the largest number.For example, given[3, 30, 34, 5, 9], the largest formed num... 阅读全文
posted @ 2015-10-09 04:12 Hygeia 阅读(143) 评论(0) 推荐(0) 编辑
摘要: Given an array ofnintegers wheren> 1,nums, return an arrayoutputsuch thatoutput[i]is equal to the product of all the elements ofnumsexceptnums[i].Solv... 阅读全文
posted @ 2015-10-08 04:48 Hygeia 阅读(128) 评论(0) 推荐(0) 编辑
摘要: Given an array of numbersnums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements t... 阅读全文
posted @ 2015-10-08 04:32 Hygeia 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Given an array of numbersnums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements t... 阅读全文
posted @ 2015-10-08 04:30 Hygeia 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Follow upforH-Index: What if thecitationsarray is sorted in ascending order? Could you optimize your algorithm?要求用二分法做。 1 public class Solution { 2 ... 阅读全文
posted @ 2015-10-08 04:12 Hygeia 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher's h-index.According ... 阅读全文
posted @ 2015-10-08 03:41 Hygeia 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters... 阅读全文
posted @ 2015-10-08 03:13 Hygeia 阅读(112) 评论(0) 推荐(0) 编辑
摘要: Given two strings s and t, write a function to determine if t is an anagram of s. For example,s = "anagram", t = "nagaram", return true.s = "rat", t = 阅读全文
posted @ 2015-10-07 12:01 Hygeia 阅读(146) 评论(0) 推荐(0) 编辑
摘要: Given an array containingndistinct numbers taken from0, 1, 2, ..., n, find the one that is missing from the array.For example,Givennums=[0, 1, 3]retur... 阅读全文
posted @ 2015-10-07 11:18 Hygeia 阅读(117) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 33 下一页