![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
Jony_Fan
这个作者很懒,什么都没留下…
展开
-
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 · 166 阅读 · 0 评论 -
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 · 163 阅读 · 0 评论 -
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 · 173 阅读 · 0 评论 -
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 · 234 阅读 · 0 评论