- 博客(0)
- 资源 (16)
- 收藏
- 关注
LeetCode9 Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space.
Java AC版本
2018-01-09
LeetCode String to Integer(atoi)
Implement atoi to convert a string to an integer.
Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input cases.
Notes: It is intended for this problem to be specified vaguely (ie, no given input specs). You are responsible to gather all the input requirements up front.
Java AC版本
2018-01-09
LeetCode7 Reverse Integer
Given a 32-bit signed integer, reverse digits of an integer.
Java AC版本
2018-01-09
LeetCode6 ZigZag Conversion
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)
Java AC版本
2018-01-09
LeetCode5 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.
Java AC 版本
2018-01-09
LeetCode4 Median of Two Sorted Arrays
There are two sorted arrays nums1 and nums2 of size m and n respectively.
Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).
Java AC版本
2018-01-09
LeetCode3 Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters.
Examples:
Given "abcabcbb", the answer is "abc", which the length is 3.
Given "bbbbb", the answer is "b", with the length of 1.
Given "pwwkew", the answer is "wke", with the length of 3. Note that the answer must be a substring, "pwke" is a subsequence and not a substring.
Java AC版本
2018-01-09
LeetCode2 Add Two Numbers
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list.
You may assume the two numbers do not contain any leading zero, except the number 0 itself.
java AC版本
2018-01-09
C语言词法分析程序
本资源内包含C语言词法分析源代码,测试用例,以及详细实验报告,虽然来源于北邮编译原理作业,虽然本例最终没有完全实现C语言的所有词法分析,但是可供初学lex的朋友作为一个实例进行参考。
2016-07-03
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人