摘要: Write a function to generate the generalized abbreviations of a word. Example: Given word = "word", return the following list (order does not matter): 阅读全文
posted @ 2016-08-17 15:42 LiBlog 阅读(173) 评论(0) 推荐(0) 编辑
摘要: Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not share common letters. You may assum 阅读全文
posted @ 2016-08-17 14:34 LiBlog 阅读(131) 评论(0) 推荐(0) 编辑
摘要: Shuffle a set of numbers without duplicates. Example: 阅读全文
posted @ 2016-08-17 13:42 LiBlog 阅读(271) 评论(0) 推荐(0) 编辑
摘要: Given a singly linked list, return a random node's value from the linked list. Each node must have the same probability of being chosen. Follow up: Wh 阅读全文
posted @ 2016-08-17 13:39 LiBlog 阅读(229) 评论(0) 推荐(0) 编辑