mrlonelyjtr's blog

写BUG的程序猿


  • Home

  • Categories

  • Archives

  • Tags

  • Search

[LeetCode] Problem 1140 - Stone Game II

Posted on 2019-08-20 | In Algorithm , LeetCode
Alex and Lee continue their games with piles of stones. There are a number of piles arranged in a row, and each pile has a positive integer number of ...
Read more »

[LeetCode] Problem 877 - Stone Game

Posted on 2019-08-20 | In Algorithm , LeetCode
Alex and Lee play a game with piles of stones. There are an even number of piles arranged in a row, and each pile has a positive integer number of st ...
Read more »

[LeetCode] Problem 312 - Burst Balloons

Posted on 2019-08-19 | In Algorithm , LeetCode
Given n balloons, indexed from 0 to n-1. Each balloon is painted with a number on it represented by array nums. You are asked to burst all the balloon ...
Read more »

[LeetCode] Problem 778 - Swim in Rising Water

Posted on 2019-08-19 | In Algorithm , LeetCode
On an N x N grid, each square grid[i][j] represents the elevation at that point (i,j). Now rain starts to fall. At time t, the depth of the water ever ...
Read more »

[LeetCode] Problem 329 - Longest Increasing Path in a Matrix

Posted on 2019-08-19 | In Algorithm , LeetCode
Given an integer matrix, find the length of the longest increasing path. From each cell, you can either move to four directions: left, right, up or do ...
Read more »

[LeetCode] Problem 1004 - Max Consecutive Ones III

Posted on 2019-08-18 | In Algorithm , LeetCode
Given an array A of 0s and 1s, we may change up to K values from 0 to 1. Return the length of the longest (contiguous) subarray that contains only 1s. ...
Read more »

[LintCode] Problem 883 - Max Consecutive Ones II

Posted on 2019-08-18 | In Algorithm , LintCode
Given a binary array, find the maximum number of consecutive 1s in this array if you can flip at most one 0. Note The input array will only contain 0 ...
Read more »

[LeetCode] Problem 485 - Max Consecutive Ones

Posted on 2019-08-18 | In Algorithm , LeetCode
Given a binary array, find the maximum number of consecutive 1s in this array. ExampleInput: [1,1,0,1,1,1] Output: 3 Explanation: The first two digits ...
Read more »

[LintCode] Problem 789 - The Maze III

Posted on 2019-08-17 | In Algorithm , LintCode
There is a ball in a maze with empty spaces and walls. The ball can go through empty spaces by rolling up (u), down (d), left (l) or right (r), but it ...
Read more »

[LintCode] Problem 905 - Nested List Weight Sum II

Posted on 2019-08-17 | In Algorithm , LintCode
Given a nested list of integers, return the sum of all integers in the list weighted by their depth. Each element is either an integer, or a list – wh ...
Read more »
1…202122…78
mrlonelyjtr

mrlonelyjtr

间歇性踌躇满志,持续性混吃等死

780 posts
18 categories
18 tags
Github
© 2020 mrlonelyjtr
Powered by Hexo
Theme - NexT.Pisces