摘要: 1 """ 2 Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, determine if s can be segmented into a space-separa 阅读全文
posted @ 2020-02-16 22:42 yawenw 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 Given an unsorted array of integers, find the length of longest increasing subsequence. 3 Example 4 Input: [10,9,2,5,3,7,101,18] 5 Output: 4 6 阅读全文
posted @ 2020-02-16 22:38 yawenw 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 We partition a row of numbers A into at most K adjacent (non-empty) groups, then our score is the sum of the average of each group. What is th 阅读全文
posted @ 2020-02-16 22:30 yawenw 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 here are N network nodes, labelled 1 to N. 3 Given times, a list of travel times as directed edges times[i] = (u, v, w), where u is the source 阅读全文
posted @ 2020-02-16 18:23 yawenw 阅读(125) 评论(0) 推荐(0) 编辑