mrlonelyjtr's blog

写BUG的程序猿


  • Home

  • Categories

  • Archives

  • Tags

  • Search

[LeetCode] Problem 653 - Two Sum IV - Input is a BST

Posted on 2019-03-07 | In Algorithm , LeetCode
Given a Binary Search Tree and a target number, return true if there exist two elements in the BST such that their sum is equal to the given target. E ...
Read more »

[LeetCode] Problem 81 - Search in Rotated Sorted Array II

Posted on 2019-03-03 | In Algorithm , LeetCode
Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,0,1,2,2,5,6] might become [2,5,6,0,0,1,2]). Y ...
Read more »

[LeetCode] Problem 33 - Search in Rotated Sorted Array

Posted on 2019-03-03 | In Algorithm , LeetCode
Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]). Y ...
Read more »

[LeetCode] Problem 32 - Longest Valid Parentheses

Posted on 2019-03-03 | In Algorithm , LeetCode
Given a string containing just the characters ‘(‘ and ‘)’, find the length of the longest valid (well-formed) parentheses substring. ExampleNo.1Input: ...
Read more »

[LeetCode] Problem 22 - Generate Parentheses

Posted on 2019-03-03 | In Algorithm , LeetCode
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set is: 1 ...
Read more »

[LeetCode] Problem 18 - 4Sum

Posted on 2019-03-03 | In Algorithm , LeetCode
Given an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b + c + d = target? Find all unique q ...
Read more »

[LeetCode] Problem 16 - 3Sum Closest

Posted on 2019-03-02 | In Algorithm , LeetCode
Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of the thr ...
Read more »

[LeetCode] Problem 15 - 3Sum

Posted on 2019-03-02 | In Algorithm , LeetCode
Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the s ...
Read more »

[LeetCode] Problem 11 - Container With Most Water

Posted on 2019-03-02 | In Algorithm , LeetCode
Given n non-negative integers a1, a2, …, an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoi ...
Read more »

[LeetCode] Problem 38 - Count and Say

Posted on 2019-03-02 | In Algorithm , LeetCode
The count-and-say sequence is the sequence of integers with the first five terms as following: 123451. 12. 113. 214. 12115. 111221 ...
Read more »
1…565758…78
mrlonelyjtr

mrlonelyjtr

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

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