摘要:
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 mak 阅读全文
posted @ 2017-12-19 09:06
逸朵
阅读(401)
评论(0)
推荐(0)
摘要:
Given an array of n integers nums and a target, find the number of index triplets i, j, k with 0 <= i < j < k < n that satisfy the condition nums[i] + 阅读全文
posted @ 2017-12-19 07:20
逸朵
阅读(140)
评论(0)
推荐(0)
摘要:
There are a row of n houses, each house can be painted with one of the three colors: red, blue or green. The cost of painting each house with a certai 阅读全文
posted @ 2017-12-19 06:54
逸朵
阅读(145)
评论(0)
推荐(0)
摘要:
Given an array of numbers, verify whether it is the correct preorder traversal sequence of a binary search tree. You may assume each number in the seq 阅读全文
posted @ 2017-12-19 06:34
逸朵
阅读(172)
评论(0)
推荐(0)
摘要:
Numbers can be regarded as product of its factors. For example, 8 = 2 x 2 x 2; = 2 x 4. Write a function that takes an integer n and return all possib 阅读全文
posted @ 2017-12-19 05:11
逸朵
阅读(128)
评论(0)
推荐(0)
摘要:
Given an array of meeting time intervals consisting of start and end times [[s1,e1],[s2,e2],...] (si < ei), find the minimum number of conference room 阅读全文
posted @ 2017-12-19 03:54
逸朵
阅读(445)
评论(0)
推荐(0)
摘要:
Given an array of meeting time intervals consisting of start and end times [[s1,e1],[s2,e2],...] (si < ei), determine if a person could attend all mee 阅读全文
posted @ 2017-12-19 03:06
逸朵
阅读(144)
评论(0)
推荐(0)
摘要:
Given a binary tree, count the number of uni-value subtrees. A Uni-value subtree means all nodes of the subtree have the same value. For example:Given 阅读全文
posted @ 2017-12-19 02:52
逸朵
阅读(186)
评论(0)
推荐(0)
摘要:
Given a string, we can "shift" each of its letter to its successive letter, for example: "abc" -> "bcd". We can keep "shifting" which forms the sequen 阅读全文
posted @ 2017-12-19 01:43
逸朵
阅读(218)
评论(0)
推荐(0)

浙公网安备 33010602011771号