
Leetcode
文章平均质量分 51
Easadon
The one who can beat me is only me.
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode 402. Remove K Digits
Given a non-negative integer num represented as a string, remove k digits from the number so that the new number is the smallest possible. Note: The length of num is less than 10002 and will be ≥ k....原创 2018-11-26 21:42:00 · 167 阅读 · 0 评论 -
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 b...原创 2018-12-03 23:21:57 · 135 阅读 · 0 评论 -
38. Count and Say【leetcode】【C++】
The count-and-say sequence is the sequence of integers with the first five terms as following: 1. 1 2. 11 3. 21 4. 1211 5. 111221 1 is read off as "one 1" or 11.11 is read off ...原创 2019-02-12 00:29:33 · 175 阅读 · 0 评论 -
ZigZag Conversion【C++】
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility) P A H N A P L S I I...原创 2019-02-12 22:50:52 · 235 阅读 · 0 评论 -
Integer to Roman【C++】
Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C 100 D ...原创 2019-02-19 21:36:09 · 149 阅读 · 0 评论 -
2.Add two number[leetcode] 【C++】
You are given twonon-emptylinked lists representing two non-negative integers. The digits are stored inreverse orderand each of their nodes contain a single digit. Add the two numbers and return i...原创 2019-05-29 19:30:37 · 176 阅读 · 0 评论 -
【Leetcode C++】27.移除元素
给定一个数组 nums和一个值 val,你需要原地移除所有数值等于val的元素,返回移除后数组的新长度。 不要使用额外的数组空间,你必须在原地修改输入数组并在使用 O(1) 额外空间的条件下完成。 元素的顺序可以改变。你不需要考虑数组中超出新长度后面的元素。 示例 1: 给定 nums = [3,2,2,3], val = 3, 函数应该返回新的长度 2, 并且 nums 中的前两...原创 2019-08-29 18:23:02 · 306 阅读 · 0 评论