mrlonelyjtr's blog

写BUG的程序猿


  • Home

  • Categories

  • Archives

  • Tags

  • Search

[LeetCode] Problem 387 - First Unique Character in a String

Posted on 2019-03-13 | In Algorithm , LeetCode
Given a string, find the first non-repeating character in it and return it’s index. If it doesn’t exist, return -1. ExamplesNo.1s = “leetcode”return 0 ...
Read more »

[LeetCode] Problem 210 - Course Schedule II

Posted on 2019-03-13 | In Algorithm , LeetCode
There are a total of n courses you have to take, labeled from 0 to n-1. Some courses may have prerequisites, for example to take course 0 you have to ...
Read more »

[LeetCode] Problem 207 - Course Schedule

Posted on 2019-03-12 | In Algorithm , LeetCode
There are a total of n courses you have to take, labeled from 0 to n-1. Some courses may have prerequisites, for example to take course 0 you have to ...
Read more »

[LintCode] Problem 604 - Window Sum

Posted on 2019-03-12 | In Algorithm , LintCode
Given an array of n integers, and a moving window(size k), move the window at each iteration from the start of the array, find the sum of the element ...
Read more »

[LeetCode] Problem 836 - Rectangle Overlap

Posted on 2019-03-12 | In Algorithm , LeetCode
A rectangle is represented as a list [x1, y1, x2, y2], where (x1, y1) are the coordinates of its bottom-left corner, and (x2, y2) are the coordinates ...
Read more »

[LintCode] Problem 533 - Two Sum - Closest to target

Posted on 2019-03-12 | In Algorithm , LintCode
Given an array nums of n integers, find two integers in nums such that the sum is closest to a given number, target. Return the absolute value of diff ...
Read more »

[LintCode] Problem 613 - High Five

Posted on 2019-03-12 | In Algorithm , LintCode
There are two properties in the node student id and scores, to ensure that each student will have at least 5 points, find the average of 5 highest sco ...
Read more »

[LeetCode] Problem 409 - Longest Palindrome

Posted on 2019-03-12 | In Algorithm , LeetCode
Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters. This ...
Read more »

[LintCode] Problem 612 - K Closest Points

Posted on 2019-03-11 | In Algorithm , LintCode
Given some points and an origin point in two-dimensional space, find k points which are nearest to the origin. Return these points sorted by distance, ...
Read more »

[LintCode] Problem 628 - Maximum Subtree

Posted on 2019-03-11 | In Algorithm , LintCode
Given a binary tree, find the subtree with maximum sum. Return the root of the subtree. NoteIt’s guaranteed that there is only one subtree with maximu ...
Read more »
1…545556…78
mrlonelyjtr

mrlonelyjtr

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

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