![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode算法历程
杨明诚
明则诚矣,诚则明矣
展开
-
LeetCode 7 Reverse Integer
Description:Given a 32-bit signed integer, reverse digits of an integer.Example 1:Input: 123Output: 321Example 2:Input: -123Output: -321Example 3:Input: 120Output: 21Note:Ass...原创 2018-11-15 22:46:06 · 151 阅读 · 0 评论 -
LeetCode 20. Valid Parentheses
问题:Given a string containing just the characters ‘(’, ‘)’, ‘{’, ‘}’, ‘[’ and ‘]’, determine if the input string is valid.An input string is valid if:Open brackets must be closed by the same type of...原创 2018-12-26 22:38:03 · 221 阅读 · 1 评论 -
LeetCode Remove Duplicates from Sorted Array
Remove Duplicates from Sorted ArrayGiven a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length.Do not allocate extra space for another...原创 2018-12-27 21:52:59 · 252 阅读 · 0 评论 -
LeetCode Remove Element
Remove ElementGiven 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 by modifying ...原创 2018-12-27 22:39:45 · 279 阅读 · 2 评论 -
LeetCode [Roman to Integer]
Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.Symbol ValueI 1V 5X 10L 50C 100D ...原创 2018-12-25 22:43:35 · 258 阅读 · 1 评论