![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
Easylove-xjl
这个作者很懒,什么都没留下…
展开
-
Contains Duplicate && Contains Duplicate II
contains duplicates原创 2015-10-21 21:05:25 · 236 阅读 · 0 评论 -
Merge Sorted Array
Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.原创 2015-10-28 22:26:21 · 280 阅读 · 0 评论 -
Majority Element
Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times.原创 2015-10-29 16:23:33 · 301 阅读 · 0 评论 -
Move Zeros
Given an array nums, write a function to move all 0’s to the end of it while maintaining the relative order of the non-zero elements.原创 2015-10-28 21:31:36 · 374 阅读 · 0 评论 -
Pascal's Triangle && Pascal's Triangle II
Given numRows, generate the first numRows of Pascal’s triangle.原创 2015-10-28 21:01:59 · 359 阅读 · 0 评论 -
Summary Ranges
Given a sorted integer array without duplicates, return the summary of its ranges.原创 2015-10-27 16:24:56 · 242 阅读 · 0 评论 -
Remove Duplicates from sorted array
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.原创 2015-10-26 20:51:29 · 307 阅读 · 0 评论 -
Remove Element
Given an array and a value, remove all instances of that value in place and return the new length.原创 2015-10-26 20:29:45 · 262 阅读 · 0 评论 -
Rotate
Rotate an array of n elements to the right by k steps.原创 2015-10-24 20:23:56 · 334 阅读 · 0 评论 -
Plus One
Given a non-negative number represented as an array of digits, plus one to the number.用一个数组来代表一个非负整数,对这个整数进行+1操作。转载 2015-10-22 10:33:48 · 298 阅读 · 0 评论 -
Word Pattern
Given a pattern and a string str, find if str follows the same pattern.原创 2015-11-17 19:52:38 · 454 阅读 · 0 评论