Buttercola

Wednesday, October 31, 2018

Leetcode 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 fit...
Monday, October 29, 2018

Leetcode 410. Split Array Largest Sum

›
Given an array which consists of non-negative integers and an integer  m , you can split the array into  m  non-empty continuous subarrays....
Thursday, October 25, 2018

Leetcode 403. Frog Jump

›
A frog is crossing a river. The river is divided into x units and at each unit there may or may not exist a stone. The frog can jump on a s...

Leetcode 377. Combination Sum IV

›
Given an integer array with all positive numbers and no duplicates, find the number of possible combinations that add up to a positive inte...

Leetcode 363. Max Sum of Rectangle No Larger Than K

›
Given a non-empty 2D matrix  matrix  and an integer  k , find the max sum of a rectangle in the  matrix  such that its sum is no larger tha...
Monday, October 22, 2018

Leetcode 764. Largest Plus Sign

›
In a 2D  grid  from (0, 0) to (N-1, N-1), every cell contains a  1 , except those cells in the given list  mines  which are  0 . What is th...
Friday, October 19, 2018

Leetcode 750. Number Of Corner Rectangles

›
Given a grid where each entry is only 0 or 1, find the number of corner rectangles. A  corner rectangle  is 4 distinct 1s on the grid tha...
4 comments:
Wednesday, October 17, 2018

Leetcode 740. Delete and Earn

›
Given an array  nums  of integers, you can perform operations on the array. In each operation, you pick any  nums[i]  and delete it to ea...
Tuesday, October 16, 2018

Leetcode 718. Maximum Length of Repeated Subarray

›
Given two integer arrays  A  and  B , return the maximum length of an subarray that appears in both arrays. Example 1: Input: A: [1,2,3...
2 comments:

Leetcode 712. Minimum ASCII Delete Sum for Two Strings

›
Given two strings  s1, s2 , find the lowest ASCII sum of deleted characters to make two strings equal. Example 1: Input: s1 = "sea...
Monday, October 15, 2018

Leetcode 688. Knight Probability in Chessboard

›
On an  N x N  chessboard, a knight starts at the  r -th row and  c -th column and attempts to make exactly  K  moves. The rows and columns ...
Friday, October 12, 2018

Leetcode 673. Number of Longest Increasing Subsequence

›
Given an unsorted array of integers, find the number of longest increasing subsequence. Example 1: Input: [1,3,5,4,7] Output: 2 Expl...

Leetcode 651. 4 Keys Keyboard

›
Imagine you have a special keyboard with the following keys: Key 1: (A) : Print one 'A' on screen. Key 2: (Ctrl-A) : Select the...
Thursday, October 11, 2018

Leetcode 650. 2 Keys Keyboard

›
Initially on a notepad only one character 'A' is present. You can perform two operations on this notepad for each step: Copy All ...
‹
›
Home
View web version
Powered by Blogger.