
LeetCode
风吹过的烟花
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Reverse Integer
Given a 32-bit signed integer, reverse digits of an integer.Example 1:Input: 123Output: 321Example 2:Input: -123Output: -321Example 3:Input: 120Output: 21Note:Assume we are dea...原创 2019-02-15 22:01:02 · 121 阅读 · 0 评论 -
Remove Element
https://leetcode.com/problems/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 ar...原创 2019-02-19 11:23:48 · 121 阅读 · 0 评论 -
Remove Duplicates from Sorted Array
https://leetcode.com/problems/remove-duplicates-from-sorted-array/题目Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length.Do n...原创 2019-02-19 10:57:48 · 117 阅读 · 0 评论 -
Merge Two Sorted Lists
https://leetcode.com/problems/merge-two-sorted-lists/题目Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists....原创 2019-02-19 09:07:32 · 154 阅读 · 0 评论 -
Valid Parentheses
https://leetcode.com/problems/valid-parentheses/题目Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.An input string is valid if:...原创 2019-02-18 16:02:33 · 128 阅读 · 0 评论 -
Longest Common Prefix
https://leetcode.com/problems/longest-common-prefix/题目描述Write a function to find the longest common prefix string amongst an array of strings.If there is no common prefix, return an empty string "...原创 2019-02-18 11:34:07 · 211 阅读 · 0 评论 -
Two Sum
题目链接Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and you may not use the ...原创 2019-02-12 14:35:12 · 120 阅读 · 0 评论 -
Roman to Integer
https://leetcode.com/problems/roman-to-integer/Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.Symbol ValueI 1V 5X 1...原创 2019-02-15 23:01:28 · 140 阅读 · 0 评论 -
Palindrome Number
Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward.Example 1:Input: 121Output: trueExample 2:Input: -121Output: falseExpl...原创 2019-02-15 22:37:50 · 171 阅读 · 0 评论 -
Search Insert Position
https://leetcode.com/problems/search-insert-position/题目Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserte...原创 2019-02-20 09:59:32 · 141 阅读 · 0 评论