2017年5月28日

摘要: Given a non-empty string s and an abbreviation abbr, return whether the string matches with the given abbreviation. A string such as "word" contains o 阅读全文
posted @ 2017-05-28 05:37 doudoudouhahaha 阅读(163) 评论(0) 推荐(0)

2017年5月19日

摘要: 恢复内容开始 Write a program to find the nth super ugly number. Super ugly numbers are positive numbers whose all prime factors are in the given prime list  阅读全文
posted @ 2017-05-19 14:07 doudoudouhahaha 阅读(171) 评论(0) 推荐(0)

2017年5月10日

摘要: Given an unsorted array of integers, find the length of longest increasing subsequence. For example,Given [10, 9, 2, 5, 3, 7, 101, 18],The longest inc 阅读全文
posted @ 2017-05-10 14:24 doudoudouhahaha 阅读(142) 评论(0) 推荐(0)

2017年5月4日

摘要: 309. Best Time to Buy and Sell Stock with Cooldown Say you have an array for which the ith element is the price of a given stock on day i. Design an a 阅读全文
posted @ 2017-05-04 00:51 doudoudouhahaha 阅读(119) 评论(0) 推荐(0)