- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 leetcode刷题笔记-Reverse Integer
问题描述: Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321解答思路 使用字符数组public class Solution { public int reverse(int x){ boolean flag=true;
2016-09-20 22:08:09 255
原创 leetcode刷题笔记-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) And then read
2016-09-20 15:12:38 198
原创 leetcode刷题笔记-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 a
2016-09-20 13:10:34 181
原创 leetcode刷题笔记-two sum
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. Example: Given nums = [
2016-09-20 12:45:19 184
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人