2018年12月27日

Leetcode 188. Best Time to Buy and Sell Stock IV

摘要: Problem: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You m 阅读全文

posted @ 2018-12-27 16:02 周浩炜 阅读(147) 评论(0) 推荐(0) 编辑

Leetcode 140. Word Break II

摘要: Problem: Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, add spaces in s to construct a sentence where each 阅读全文

posted @ 2018-12-27 15:04 周浩炜 阅读(151) 评论(0) 推荐(0) 编辑

Leetcode 887. Super Egg Drop

摘要: Problem: You are given K eggs, and you have access to a building with N floors from 1 to N. Each egg is identical in function, and if an egg breaks, y 阅读全文

posted @ 2018-12-27 07:22 周浩炜 阅读(452) 评论(0) 推荐(0) 编辑

Leetcode 305. Number of Islands II

摘要: Problem: A 2d grid map of m rows and n columns is initially filled with water. We may perform an addLand operation which turns the water at position ( 阅读全文

posted @ 2018-12-27 05:38 周浩炜 阅读(145) 评论(0) 推荐(0) 编辑

导航