上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 33 下一页
摘要: 题目: There is a new alien language which uses the latin alphabet. However, the order among letters are unknown to you. You receive a list of words from 阅读全文
posted @ 2015-12-07 13:49 YRB 阅读(4164) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array. For example,Given nums = [0, 阅读全文
posted @ 2015-12-06 03:25 YRB 阅读(1311) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a strings, return all the palindromic permutations (without duplicates) of it. Return an empty list if no palindromic permutation could be fo... 阅读全文
posted @ 2015-12-06 01:03 YRB 阅读(1117) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a string, determine if a permutation of the string could form a palindrome. For example,"code" -> False, "aab" -> True, "carerac" -> True. H 阅读全文
posted @ 2015-12-05 13:13 YRB 阅读(1914) 评论(0) 推荐(0) 编辑
摘要: 题目: There are a row of n houses, each house can be painted with one of the k colors. The cost of painting each house with a certain color is different 阅读全文
posted @ 2015-12-05 12:44 YRB 阅读(1461) 评论(0) 推荐(0) 编辑
摘要: 题目: Write a program to find the n-th ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 1, 2, 3, 4, 阅读全文
posted @ 2015-12-05 03:23 YRB 阅读(835) 评论(0) 推荐(0) 编辑
摘要: 题目: Write a program to check whether a given number is an ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For 阅读全文
posted @ 2015-12-04 12:10 YRB 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 题目: Given n nodes labeled from 0 to n - 1 and a list of undirected edges (each edge is a pair of nodes), write a function to check whether these edges 阅读全文
posted @ 2015-12-04 11:58 YRB 阅读(1908) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two eleme 阅读全文
posted @ 2015-12-04 02:32 YRB 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an array ofnintegersnumsand atarget, find the number of index tripletsi, j, kwith0 <= i < j < k < nthat satisfy the conditionnums[i] + nums[j... 阅读全文
posted @ 2015-12-03 06:29 YRB 阅读(1187) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 33 下一页