![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
algorithm_leetcode
fresh_hust
这个作者很懒,什么都没留下…
展开
-
算法1,2
从2019年1月13日开始,争取每天学习一点算法知识,并且在CSDN上记录,以防自己偷懒,主要的学习材料是Algorithm 4th 和leetcode, 当然是从最基础的内容开始学习啦。 问题描述:两数之和问题,使用JAVA实现。 Given an array of integers, return indices of the two numbers such that they add ...原创 2019-01-13 22:49:16 · 161 阅读 · 0 评论 -
算法3 Longest substring
问题描述: 重点:1,longest substring 2, no repeating characters 解法一: class Solution { public int lengthOfLongestSubstring(String s) { Set<Character> substring=new HashSet(); in...原创 2019-01-21 12:22:04 · 294 阅读 · 2 评论 -
算法4-Median of Two Sorted Arrays
1,问题描述与要求 There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). You may assume ...原创 2019-01-27 10:48:11 · 128 阅读 · 0 评论 -
算法7_reverse_integer
1,问题 Given a 32-bit signed integer, reverse digits of an integer. Note: Assume we are dealing with an environment which could only store integers within the 32-bit signed integer range: [−2^31,...原创 2019-02-02 23:42:02 · 90 阅读 · 0 评论