LeetCode[Hard]
文章平均质量分 86
CodingArtist
这个作者很懒,什么都没留下…
展开
-
LeetCode[Hard]------857. Minimum Cost To Hire K Workers
LeetCode[Hard]------857. Minimum Cost To Hire K Workers问题描述There are N workers. The i-th worker has a quality[i] and a minimum wage expectation wage[i].Now we want to hire exactly K workers to for...原创 2018-11-03 09:58:04 · 189 阅读 · 0 评论 -
LeetCode[Hard]------Sliding Window类型题目详解
LeetCode[Hard]------Sliding Window类型题目详解什么是Sliding Window算法?滑动窗口(Sliding Window)问题经常使用左边界(left)和右边界(right)来解决问题,[0, left) 的区域为滑动窗口已经探索过的区域, [left, right]的区域为滑动窗口正在探索的区域, (right, length-1)为待探索的区域。Sl...原创 2018-11-02 07:52:12 · 624 阅读 · 0 评论 -
LeetCode[Hard]------843. Guess the Word
问题描述This problem is an interactive problem new to the LeetCode platform.We are given a word list of unique words, each word is 6 letters long, and one word in this list is chosen as secret.You may ...原创 2018-11-04 08:16:48 · 836 阅读 · 0 评论 -
LeetCode[Hard]------418. Sentence Screen Fitting
问题描述Given a rows x cols screen and a sentence represented by a list of non-empty words, find how many times the given sentence can be fitted on the screen.Note:A word cannot be split into two line...原创 2018-11-07 09:59:51 · 401 阅读 · 0 评论 -
LeetCode[Hard]------489. Robot Room Cleaner
问题描述Given a robot cleaner in a room modeled as a grid.Each cell in the grid can be empty or blocked.The robot cleaner with 4 given APIs can move forward, turn left or turn right. Each turn it made ...原创 2018-11-05 08:36:15 · 1629 阅读 · 1 评论 -
LeetCode[Hard]------642. Design Search Autocomplete System
问题描述Design a search autocomplete system for a search engine. Users may input a sentence (at least one word and end with a special character ‘#’). For each character they type except ‘#’, you need to ...原创 2018-11-11 07:42:06 · 518 阅读 · 0 评论 -
LeetCode[Hard]------803. Bricks Falling When Hit
问题描述We have a grid of 1s and 0s; the 1s in a cell represent bricks. A brick will not drop if and only if it is directly connected to the top of the grid, or at least one of its (4-way) adjacent bric...原创 2018-11-06 05:55:56 · 350 阅读 · 0 评论 -
LeetCode[Hard]------837. New 21 Game
问题描述Alice plays the following game, loosely based on the card game “21”.Alice starts with 0 points, and draws numbers while she has less than K points. During each draw, she gains an integer number...原创 2018-11-15 12:09:02 · 293 阅读 · 0 评论