09 2014 档案

[leetcode] Word Break
摘要:1 problemGiven a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more dictionary words.F... 阅读全文

posted @ 2014-09-26 12:35 erli11 阅读(168) 评论(0) 推荐(0)

[leetcode] Best Time to Buy and Sell Stock
摘要:Problem:Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to complete at most one transac... 阅读全文

posted @ 2014-09-25 18:08 erli11 阅读(218) 评论(0) 推荐(0)

#leetcode#Linked List Cycle
摘要:1、题目Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?2、思路设置两个指针,一个每次走一步,另一个每次走两步。走两步的一定会追上走... 阅读全文

posted @ 2014-09-11 17:47 erli11 阅读(133) 评论(0) 推荐(0)

#leetcode# String to Integer
摘要:题目来自:https://oj.leetcode.com/problems/string-to-integer-atoi/1、题目简介Implementatoito convert a string to an integer.Hint:Carefully consider all possible... 阅读全文

posted @ 2014-09-09 21:04 erli11 阅读(157) 评论(0) 推荐(0)

导航