
Algorithm
穿过午夜
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Algorithm:Two Sum 之Java实现(含最优解)
题目 leetcode-1 难度:简单 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, and yo...原创 2019-01-27 14:59:59 · 2874 阅读 · 0 评论 -
Algorithm:Add Two Numbers之Java实现(含最优解)
题目 leetcode-2 难度:中 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 t...原创 2019-02-02 17:20:44 · 2532 阅读 · 1 评论 -
Algorithm:Longest Substring Without Repeating Characters之Java实现(含最优解)
题目 Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb" Output: 3 Explanation: The answer is "abc", with the length of 3. Exampl...原创 2019-02-10 23:52:41 · 347 阅读 · 0 评论 -
Algorithm: Reverse Integer之Java实现(含最优解)
题目 难度:简单 Given a 32-bit signed integer, reverse digits of an integer. Example 1: Input: 123 Output: 321 Example 2: Input: -123 Output: -321 Example 3: Input: 120 Output: 21 Note: Assume we a...原创 2019-02-18 11:03:54 · 253 阅读 · 0 评论