Premiumlab  

摘要: Hello Internet ! This blog is to store my algorithm practices. Since Evernote code blocks do not show indent properly, here I am, back to cnblog. Befo 阅读全文
posted @ 2017-07-27 22:15 Premiumlab 阅读(215) 评论(1) 推荐(0) 编辑

2017年12月26日

摘要: Print the longest common substring 阅读全文
posted @ 2017-12-26 02:37 Premiumlab 阅读(186) 评论(0) 推荐(0) 编辑

2017年8月18日

摘要: https://leetcode.com/problems/can-i-win/description/ In the "100 game," two players take turns adding, to a running total, any integer from 1..10. The 阅读全文
posted @ 2017-08-18 17:28 Premiumlab 阅读(106) 评论(0) 推荐(0) 编辑
 
摘要: https://leetcode.com/problems/maximum-product-subarray/description/ Find the contiguous subarray within an array (containing at least one number) whic 阅读全文
posted @ 2017-08-18 16:03 Premiumlab 阅读(120) 评论(0) 推荐(0) 编辑
 
摘要: https://leetcode.com/problems/search-for-a-range/description/ Given an array of integers sorted in ascending order, find the starting and ending posit 阅读全文
posted @ 2017-08-18 15:46 Premiumlab 阅读(130) 评论(0) 推荐(0) 编辑

2017年8月17日

摘要: https://leetcode.com/problems/repeated-dna-sequences/description/ All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for ex 阅读全文
posted @ 2017-08-17 23:58 Premiumlab 阅读(156) 评论(0) 推荐(0) 编辑

2017年8月16日

摘要: https://leetcode.com/problems/find-leaves-of-binary-tree/description/ Given a binary tree, collect a tree's nodes as if you were doing this: Collect a 阅读全文
posted @ 2017-08-16 17:49 Premiumlab 阅读(227) 评论(0) 推荐(0) 编辑

2017年8月15日

摘要: https://leetcode.com/problems/shortest-word-distance-iii/description/ This is a follow up of Shortest Word Distance. The only difference is now word1  阅读全文
posted @ 2017-08-15 22:10 Premiumlab 阅读(168) 评论(0) 推荐(0) 编辑
 
摘要: https://leetcode.com/problems/symmetric-tree/description/ Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center 阅读全文
posted @ 2017-08-15 11:58 Premiumlab 阅读(269) 评论(0) 推荐(0) 编辑

2017年8月6日

摘要: https://leetcode.com/problems/maximum-subarray/description/ Find the contiguous subarray within an array (containing at least one number) which has th 阅读全文
posted @ 2017-08-06 18:07 Premiumlab 阅读(162) 评论(0) 推荐(0) 编辑
 
摘要: https://leetcode.com/problems/isomorphic-strings/description/ Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic 阅读全文
posted @ 2017-08-06 17:26 Premiumlab 阅读(201) 评论(0) 推荐(0) 编辑