Fork me on GitHub
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 37 下一页
摘要: Given a positive integer a, find the smallest positive integer b whose multiplication of each digit equals to a. If there is no answer or the answer i 阅读全文
posted @ 2017-06-18 12:57 hellowOOOrld 阅读(402) 评论(0) 推荐(0)
摘要: Given the root of a binary tree, then value v and depth d, you need to add a row of nodes with value v at the given depth d. The root node is at depth 阅读全文
posted @ 2017-06-18 11:59 hellowOOOrld 阅读(199) 评论(0) 推荐(0)
摘要: Given m arrays, and each array is sorted in ascending order. Now you can pick up two integers from two different arrays (each array picks one) and cal 阅读全文
posted @ 2017-06-18 11:44 hellowOOOrld 阅读(540) 评论(0) 推荐(0)
摘要: Given an integer n, generate all structurally unique BST's (binary search trees) that store values 1...n. For example,Given n = 3, your program should 阅读全文
posted @ 2017-06-17 21:44 hellowOOOrld 阅读(156) 评论(0) 推荐(0)
摘要: Given n, how many structurally unique BST's (binary search trees) that store values 1...n? For example,Given n = 3, there are a total of 5 unique BST' 阅读全文
posted @ 2017-06-17 19:02 hellowOOOrld 阅读(168) 评论(0) 推荐(0)
摘要: Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. For exampl 阅读全文
posted @ 2017-06-14 17:12 hellowOOOrld 阅读(277) 评论(0) 推荐(0)
摘要: Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. Each num 阅读全文
posted @ 2017-06-14 15:12 hellowOOOrld 阅读(195) 评论(0) 推荐(0)
摘要: There are a number of spherical balloons spread in two-dimensional space. For each balloon, provided input is the start and end coordinates of the hor 阅读全文
posted @ 2017-06-14 11:09 hellowOOOrld 阅读(188) 评论(0) 推荐(0)
摘要: Count the number of segments in a string, where a segment is defined to be a contiguous sequence of non-space characters. Please note that the string 阅读全文
posted @ 2017-06-12 20:17 hellowOOOrld 阅读(132) 评论(0) 推荐(0)
摘要: Given n points in the plane that are all pairwise distinct, a "boomerang" is a tuple of points (i, j, k) such that the distance between iand j equals 阅读全文
posted @ 2017-06-12 10:05 hellowOOOrld 阅读(192) 评论(-1) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 37 下一页