
LeetCode
大爱助手
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode Day.05 Integer to Roman
题目描述 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-04-20 22:26:39 · 148 阅读 · 0 评论 -
LeetCode Day.01 Two Sum
闲来无事,做下LeetCode的题,提升下算法 题目描述 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, a...原创 2019-04-16 21:12:22 · 152 阅读 · 0 评论 -
LeetCode Day.02 Longest Substring Without Repeating Characters
题目描述 Given a string, find the length of the longest substring without repeating characters. Example 1: Input: “abcabcbb” Output: 3 Explanation: The answer is “abc”, with the length of 3. Example 2: In...原创 2019-04-17 12:50:31 · 140 阅读 · 0 评论 -
LeetCode Day.03 Longest Palindromic Substring
这道题花了好长时间 题目描述 Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example 1: Input: “babad” Output: “bab” Note: “aba” is also a valid a...原创 2019-04-17 23:49:04 · 145 阅读 · 0 评论 -
LeetCode Day.06 关于二进制与位运算的总结
background 之前一段时间遇到了Leetcode中一些比较简单的题目,但是有一些的最优解决方案是通过位运算实现的,即简洁又高效。本节整理下c++中关于二进制以及位运算的基本知识,以及在算法中的相关应用。 Menu (Share) A summary: how to use bit manipulation to solve problems easily and efficiently...原创 2019-04-26 21:02:48 · 205 阅读 · 0 评论 -
LeetCode Day.04 Regular Expression Matching
一道标准的NFA题 题目描述 Given an input string (s) and a pattern §, implement regular expression matching with support for ‘.’ and ‘*’. ‘.’ Matches any single character. ‘*’ Matches zero or more of the precedin...原创 2019-04-19 00:36:28 · 195 阅读 · 0 评论