Python
powerlwj
这个作者很懒,什么都没留下…
展开
-
辣鸡刘的Leetcode之旅4 (Weekly Contest 100)【单调序列,】
Monotonic Array 题目描述: An array is monotonic if it is either monotone increasing or monotone decreasing. An array A is monotone increasing if for all i <= j, A[i] <= A[j]. An array A is mono...原创 2018-09-04 14:22:16 · 200 阅读 · 0 评论 -
辣鸡刘的Leetcode之旅6【移除元素, 实现strStr() ,寻找插入的位置,最长无重复子串, 最长回文字符 】
27. Remove Element 题目描述: Given an array nums and a value val, remove all instances of that value in-place and return the new length. Do not allocate extra space for another array, you must do this ...原创 2018-09-05 16:14:57 · 240 阅读 · 0 评论 -
辣鸡刘的Leetcode之旅7【Length of Last Word,Maximum Subarray,count-and-say,Plus One】
58. Length of Last Word 题目描述: Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word does not exist...原创 2018-09-15 22:38:17 · 209 阅读 · 0 评论 -
辣鸡刘的Leetcode之旅8【Add Binary,Sqrt(x),Merge Sorted Array】
Add Binary 题目描述; Given two binary strings, return their sum (also a binary string). The input strings are both non-empty and contains only characters 1 or 0. Example 1: Input: a = "11", b = "原创 2018-09-23 20:46:36 · 269 阅读 · 0 评论