摘要: Given a list of non-negative numbers and a target integer k, write a function to check if the array has a continuous subarray of size at least 2 that 阅读全文
posted @ 2017-09-12 20:11 Nicotine1026 阅读(93) 评论(0) 推荐(0) 编辑
摘要: Given a string s and a string t, check if s is subsequence of t. You may assume that there is only lower case English letters in both s and t. t is po 阅读全文
posted @ 2017-09-12 18:54 Nicotine1026 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 这两天一直复习动态规划,就想到leetcode上刷刷题,easy难度的很少,大部分都是medium和hard。本题是第一道DP类型medium难度的题目,但是用其他的方法比如暴力法也可以求解。首先来看题目描述: A sequence of number is called arithmetic if 阅读全文
posted @ 2017-08-31 18:59 Nicotine1026 阅读(132) 评论(0) 推荐(0) 编辑
摘要: Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng 阅读全文
posted @ 2017-08-27 22:06 Nicotine1026 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 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 contai 阅读全文
posted @ 2017-08-25 18:46 Nicotine1026 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 虽然我用了自带的主题,但是我还是期望以后可以自己修改主题。可以参考一下博客: http://www.jianshu.com/p/23b2bfc9a90d 阅读全文
posted @ 2017-08-20 10:44 Nicotine1026 阅读(227) 评论(0) 推荐(0) 编辑