2019年1月9日

Leetcode 940. Distinct Subsequences II

摘要: Problem: Given a string S, count the number of distinct, non-empty subsequences of S . Since the result may be large, return the answer modulo 10^9 + 阅读全文

posted @ 2019-01-09 06:15 周浩炜 阅读(409) 评论(0) 推荐(0) 编辑

2019年1月8日

Leetcode 727. Minimum Window Subsequence

摘要: Problem: Given strings S and T, find the minimum (contiguous) substring W of S, so that T is a subsequence of W. If there is no such window in S that 阅读全文

posted @ 2019-01-08 14:06 周浩炜 阅读(443) 评论(0) 推荐(0) 编辑

Leetcode 815. Bus Routes

摘要: Problem: We have a list of bus routes. Each routes[i] is a bus route that the i-th bus repeats forever. For example if routes[0] = [1, 5, 7], this mea 阅读全文

posted @ 2019-01-08 12:34 周浩炜 阅读(174) 评论(0) 推荐(0) 编辑

Leetcode 568. Maximum Vacation Days

摘要: Problem: LeetCode wants to give one of its best employees the option to travel among N cities to collect algorithm problems. But all work and no play 阅读全文

posted @ 2019-01-08 12:19 周浩炜 阅读(286) 评论(0) 推荐(0) 编辑

2019年1月7日

Leetcode 407. Trapping Rain Water II

摘要: Problem: Given an m x n matrix of positive integers representing the height of each unit cell in a 2D elevation map, compute the volume of water it is 阅读全文

posted @ 2019-01-07 16:37 周浩炜 阅读(255) 评论(0) 推荐(0) 编辑

Leetcode 465. Optimal Account Balancing

摘要: Problem: A group of friends went on holiday and sometimes lent each other money. For example, Alice paid for Bill's lunch for $10. Then later Chris ga 阅读全文

posted @ 2019-01-07 16:15 周浩炜 阅读(526) 评论(0) 推荐(0) 编辑

Leetcode 668. Kth Smallest Number in Multiplication Table

摘要: Problem: Nearly every one have used the Multiplication Table. But could you find out the k-th smallest number quickly from the multiplication table? G 阅读全文

posted @ 2019-01-07 15:00 周浩炜 阅读(217) 评论(0) 推荐(0) 编辑

2019年1月6日

Leetcode 42. Trapping Rain Water

摘要: Problem: Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after 阅读全文

posted @ 2019-01-06 17:08 周浩炜 阅读(186) 评论(0) 推荐(0) 编辑

Leetcode 920. Number of Music Playlists

摘要: Problem: Your music player contains N different songs and she wants to listen to L(not necessarily different) songs during your trip. You create a pla 阅读全文

posted @ 2019-01-06 14:01 周浩炜 阅读(444) 评论(0) 推荐(0) 编辑

Leetcode 689. Maximum Sum of 3 Non-Overlapping Subarrays

摘要: Problem: In a given array nums of positive integers, find three non-overlapping subarrays with maximum sum. Each subarray will be of size k, and we wa 阅读全文

posted @ 2019-01-06 09:30 周浩炜 阅读(262) 评论(0) 推荐(0) 编辑

导航