mrlonelyjtr's blog

写BUG的程序猿


  • Home

  • Categories

  • Archives

  • Tags

  • Search

[LeetCode] Problem 937 - Reorder Log Files

Posted on 2019-03-10 | In Algorithm , LeetCode
You have an array of logs. Each log is a space delimited string of words. For each log, the first word in each log is an alphanumeric identifier. Th ...
Read more »

[LeetCode] Problem 763 - Partition Labels

Posted on 2019-03-10 | In Algorithm , LeetCode
A string S of lowercase letters is given. We want to partition this string into as many parts as possible so that each letter appears in at most one p ...
Read more »

[LintCode] Problem 386 - Longest Substring with At Most K Distinct Characters

Posted on 2019-03-10 | In Algorithm , LintCode
Given a string S, find the length of the longest substring T that contains at most k distinct characters. ExampleNo.1Input: S = “eceba” and k = 3 Outp ...
Read more »

[LeetCode] Problem 438 - Find All Anagrams in a String

Posted on 2019-03-09 | In Algorithm , LeetCode
Given a string s and a non-empty string p, find all the start indices of p’s anagrams in s. Strings consists of lowercase English letters only and the ...
Read more »

[LintCode] Problem 597 - Subtree with Maximum Average

Posted on 2019-03-09 | In Algorithm , LintCode
Given a binary tree, find the subtree with maximum average. Return the root of the subtree. NoteIt’s guaranteed that there is only one subtree with ma ...
Read more »

[LeetCode] Problem 819 - Most Common Word

Posted on 2019-03-08 | In Algorithm , LeetCode
Given a paragraph and a list of banned words, return the most frequent word that is not in the list of banned words. It is guaranteed there is at lea ...
Read more »

[LeetCode] Problem 973 - K Closest Points to Origin

Posted on 2019-03-08 | In Algorithm , LeetCode
We have a list of points on the plane. Find the K closest points to the origin (0, 0). (Here, the distance between two points on a plane is the Eucli ...
Read more »

[LintCode] Problem 788 - The Maze II

Posted on 2019-03-08 | 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, down, left or right, but it won’t stop roll ...
Read more »

[LintCode] Problem 787 - The Maze

Posted on 2019-03-08 | 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, down, left or right, but it won’t stop roll ...
Read more »

[LeetCode] Problem 516 - Longest Palindromic Subsequence

Posted on 2019-03-07 | In Algorithm , LeetCode
Given a string s, find the longest palindromic subsequence’s length in s. You may assume that the maximum length of s is 1000. ExampleNo.1Input:“bbbab ...
Read more »
1…555657…78
mrlonelyjtr

mrlonelyjtr

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

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