
leetcode-java
菜鸟很菜
菜鸟很菜,仍然要飞~
展开
-
leetcode 1. Two Sum -----java
题目链接:https://leetcode.com/problems/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 ha原创 2016-06-20 19:52:04 · 2761 阅读 · 0 评论 -
leetcode: 2. Add Two Numbers (java)
题目链接:https://leetcode.com/problems/add-two-numbers/ 题目: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain原创 2016-06-20 20:01:09 · 538 阅读 · 0 评论 -
leetcode:3. Longest Substring Without Repeating Characters (java)
题目链接:https://leetcode.com/problems/longest-substring-without-repeating-characters/ 题目: Given a string, find the length of the longest substring without repeating characters. Examples: Gi原创 2016-06-20 20:36:28 · 2444 阅读 · 0 评论 -
leetcode: 4. Median of Two Sorted Arrays (java)
题目链接:https://leetcode.com/problems/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原创 2016-06-20 20:44:18 · 1347 阅读 · 0 评论 -
leetcode: 5. Longest Palindromic Substring (java)
题目链接:https://leetcode.com/problems/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, an原创 2016-06-20 21:09:42 · 694 阅读 · 0 评论