![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法
__李少
目前IT菜鸟,暂时从事前端工作,对算法有兴趣。(正在学习Python,所以。。。)
展开
-
今天刚刚开通博客。LeetCode--1
争取每天一道LeetCode吧。题目:Given an array of integers, return indices of the two numbers such that they add up to a specific target.例子:Given nums = [2, 7, 11, 15], target = 9,Because nums[0] + nums[原创 2017-07-17 22:44:00 · 158 阅读 · 0 评论 -
leetcode第3个算法题目
这是leetcode第3个算法题目,当时看到这个题目,心里就有思路了,感觉很简单,大概就是把每一个没有重复的字符串拿出来,比一比哪个最长,对了,题目如下。 Given a string, find the length of the longest substring without repeating characters. Examples:Given “abcabcbb”, the ans原创 2017-07-29 22:57:32 · 191 阅读 · 0 评论 -
LeetCode 第2题
第2题拖了好久,原因一就是第一遍没做对,原因二就是懒。今天正好有状态,麻利的就写出来了。 public ListNode addTwoNumbers(ListNode l1, ListNode l2) { ListNode list = new ListNode(0); ListNode head = list; boolean ten = false;原创 2017-07-27 21:56:59 · 213 阅读 · 0 评论