06 2020 档案

摘要:The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of M x N rooms laid out in a 阅读全文
posted @ 2020-06-22 03:35 Review->Improve 阅读(446) 评论(0) 推荐(0)
摘要:Given the array houses and an integer k. where houses[i] is the location of the ith house along a street, your task is to allocate k mailboxes in the 阅读全文
posted @ 2020-06-20 05:37 Review->Improve 阅读(692) 评论(0) 推荐(0)
摘要:Given an array of integers arr and an integer target. You have to find two non-overlapping sub-arrays of arr each with sum equal target. There can be 阅读全文
posted @ 2020-06-18 22:33 Review->Improve 阅读(2076) 评论(0) 推荐(0)
摘要:Suppose you have a random list of people standing in a queue. Each person is described by a pair of integers (h, k), where h is the height of the pers 阅读全文
posted @ 2020-06-13 06:39 Review->Improve 阅读(257) 评论(0) 推荐(0)
摘要:Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there isn't 阅读全文
posted @ 2020-06-11 07:57 Review->Improve 阅读(208) 评论(0) 推荐(0)
摘要:Return the length of the shortest, non-empty, contiguous subarray of A with sum at least K. If there is no non-empty subarray with sum at least K, ret 阅读全文
posted @ 2020-06-11 07:49 Review->Improve 阅读(419) 评论(0) 推荐(0)
摘要:Given an array nums of integers, we need to find the maximum possible sum of elements of the array such that it is divisible by three. Example 1: Inpu 阅读全文
posted @ 2020-06-10 08:07 Review->Improve 阅读(727) 评论(0) 推荐(0)
摘要:There are 2N people a company is planning to interview. The cost of flying the i-th person to city A is costs[i][0], and the cost of flying the i-th p 阅读全文
posted @ 2020-06-04 02:24 Review->Improve 阅读(252) 评论(0) 推荐(0)