### LeetCode试题

0 已关注
9篇博文
• #### LeetCode String to Integer (atoi)

一、试题Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cas...

2017-12-08 22:36
32
• #### LeetCode Palindrome Number

试题 Determine whether an integer is a palindrome. Do this without extra space. 代码 // 计算出数字的两边的...

2018-01-17 15:00
20
• #### LeetCode ZigZag Conversion

一、题目The string “PAYPALISHIRING” is written in a zigzag pattern on a given number of rows like this: ...

2017-11-09 14:50
41
• #### LeetCode Reverse Integer

一、题目Given a 32-bit signed integer, reverse digits of an integer.Example 1:Input: 123 Output: 321 ...

2017-12-06 18:46
182
• #### LeetCode Median of Two Sorted Arrays

1、 简单合并，排序，取中值class Solution { public: double findMedianSortedArrays(vector& nums1, vector& num...

2017-11-08 22:09
132
• #### LeetCode Longest Palindromic Substring

一、试题Given a string s, find the longest palindromic substring in s. You may assume that the maximum l...

2017-11-09 11:32
271
• #### LeetCode Add Two Numbers

一、题目You are given two linked lists representing two non-negative numbers. The digits are stored in r...

2016-10-09 11:35
169
• #### LeetCode之Longest Substring Without Repeating Characters

一、题目Given a string, find the length of the longest substring without repeating characters. Examples...

2016-10-10 18:12
227
• #### LeetCode之Two Sum

一、题目Given an array of integers, return indices of the two numbers such that they add up to a specifi...

2016-09-28 16:58
280