mrlonelyjtr's blog

写BUG的程序猿


  • Home

  • Categories

  • Archives

  • Tags

  • Search

[LintCode] Problem 856 - Sentence Similarity

Posted on 2019-07-17 | In Algorithm , LintCode
Given two sentences words1, words2 (each represented as an array of strings), and a list of similar word pairs pairs, determine if two sentences are s ...
Read more »

[LeetCode] Problem 407 - Trapping Rain Water II

Posted on 2019-07-17 | In Algorithm , LeetCode
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 able to ...
Read more »

[LeetCode] Problem 42 - Trapping Rain Water

Posted on 2019-07-17 | In Algorithm , LeetCode
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 raining. ...
Read more »

[LeetCode] Problem 337 - House Robber III

Posted on 2019-07-16 | In Algorithm , LeetCode
The thief has found himself a new place for his thievery again. There is only one entrance to this area, called the “root.” Besides the root, each hou ...
Read more »

[LintCode] Problem 514 - Paint Fence

Posted on 2019-07-16 | In Algorithm , LintCode
There is a fence with n posts, each post can be painted with one of the k colors.You have to paint all the posts such that no more than two adjacent f ...
Read more »

[LintCode] Problem 516 - Paint House II

Posted on 2019-07-16 | In Algorithm , LintCode
There are a row of n houses, each house can be painted with one of the k colors. The cost of painting each house with a certain color is different. Yo ...
Read more »

[LintCode] Problem 515 - Paint House

Posted on 2019-07-16 | In Algorithm , LintCode
There are a row of n houses, each house can be painted with one of the three colors: red, blue or green. The cost of painting each house with a certai ...
Read more »

[LeetCode] Problem 229 - Majority Element II

Posted on 2019-07-15 | In Algorithm , LeetCode
Given an integer array of size n, find all elements that appear more than ⌊ n/3 ⌋ times. NoteThe algorithm should run in linear time and in O(1) space ...
Read more »

[LeetCode] Problem 169 - Majority Element

Posted on 2019-07-15 | In Algorithm , LeetCode
Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You may assume that the ...
Read more »

[LintCode] Problem 901 - Closest Binary Search Tree Value II

Posted on 2019-07-15 | In Algorithm , LintCode
Given a non-empty binary search tree and a target value, find k values in the BST that are closest to the target. Note Given target value is a floatin ...
Read more »
1…293031…78
mrlonelyjtr

mrlonelyjtr

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

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