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 · 2722 阅读 · 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 · 2393 阅读 · 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 · 252 阅读 · 0 评论 -
Algorithm: Reverse Integer之Java实现(含最优解)
题目难度:简单Given a 32-bit signed integer, reverse digits of an integer.Example 1:Input: 123 Output: 321Example 2:Input: -123 Output: -321Example 3:Input: 120 Output: 21Note:Assume we a...原创 2019-02-18 11:03:54 · 197 阅读 · 0 评论