上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 28 下一页
摘要: 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)
摘要: A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down). Write a function to count the total strobog 阅读全文
posted @ 2017-12-18 13:09 逸朵 阅读(311) 评论(0) 推荐(0)
摘要: A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down). Find all strobogrammatic numbers that are o 阅读全文
posted @ 2017-12-18 12:57 逸朵 阅读(227) 评论(0) 推荐(0)
摘要: A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down). Write a function to determine if a number i 阅读全文
posted @ 2017-12-18 12:21 逸朵 阅读(239) 评论(0) 推荐(0)
摘要: This is a follow up of Shortest Word Distance. The only difference is now you are given the list of words and your method will be called repeatedly ma 阅读全文
posted @ 2017-12-18 10:37 逸朵 阅读(335) 评论(0) 推荐(0)
摘要: 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-12-18 10:33 逸朵 阅读(219) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 28 下一页