摘要: Find Minimum in Rotated Sorted Array II Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4 阅读全文
posted @ 2020-07-07 15:35 十三w~w 阅读(109) 评论(0) 推荐(0)
摘要: Find Minimum in Rotated Sorted Array Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5, 阅读全文
posted @ 2020-07-07 15:18 十三w~w 阅读(77) 评论(0) 推荐(0)
摘要: Maximum Product Subarray Given an integer array nums, find the contiguous subarray within an array (containing at least one number) which has the larg 阅读全文
posted @ 2020-07-07 14:55 十三w~w 阅读(91) 评论(0) 推荐(0)
摘要: Reverse Words in a String Given an input string, reverse the string word by word. Example 1: Input: "the sky is blue" Output: "blue is sky the" Exampl 阅读全文
posted @ 2020-07-07 14:25 十三w~w 阅读(107) 评论(0) 推荐(0)
摘要: Sort List Sort a linked list in O(n log n) time using constant space complexity. Example 1: Input: 4->2->1->3 Output: 1->2->3->4 Example 2: Input: -1- 阅读全文
posted @ 2020-07-07 13:46 十三w~w 阅读(102) 评论(0) 推荐(0)
摘要: Evaluate Reverse Polish Notation Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, *, /. Each opera 阅读全文
posted @ 2020-07-07 12:05 十三w~w 阅读(82) 评论(0) 推荐(0)