摘要:
Given a list of words and two words word1 and word2, return the shortest distance between these two words in the list. For example,Assume that words = 阅读全文
posted @ 2017-11-16 14:49
jasminemzy
阅读(89)
评论(0)
推荐(0)
摘要:
Given a nested list of integers, return the sum of all integers in the list weighted by their depth. Each element is either an integer, or a list -- w 阅读全文
posted @ 2017-11-16 10:12
jasminemzy
阅读(100)
评论(0)
推荐(0)
摘要:
Given a nested list of integers, return the sum of all integers in the list weighted by their depth. Each element is either an integer, or a list -- w 阅读全文
posted @ 2017-11-16 08:19
jasminemzy
阅读(112)
评论(0)
推荐(0)
摘要:
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. For example:Given the below binary tree and sum 阅读全文
posted @ 2017-11-16 07:22
jasminemzy
阅读(118)
评论(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. Yo 阅读全文
posted @ 2017-11-16 06:48
jasminemzy
阅读(199)
评论(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-11-16 03:42
jasminemzy
阅读(201)
评论(0)
推荐(0)

浙公网安备 33010602011771号