摘要:
题目: 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 阅读全文
摘要:
题目: 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, 阅读全文
摘要:
题目:Given a strings, return all the palindromic permutations (without duplicates) of it. Return an empty list if no palindromic permutation could be fo... 阅读全文
摘要:
题目: Given a string, determine if a permutation of the string could form a palindrome. For example,"code" -> False, "aab" -> True, "carerac" -> True. H 阅读全文
摘要:
题目: 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 阅读全文
摘要:
题目: 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, 阅读全文
摘要:
题目: 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 阅读全文
摘要:
题目: 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 阅读全文
摘要:
题目: 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 阅读全文
摘要:
题目:Given an array ofnintegersnumsand atarget, find the number of index tripletsi, j, kwith0 <= i < j < k < nthat satisfy the conditionnums[i] + nums[j... 阅读全文