摘要: ``` / Source : https://oj.leetcode.com/problems/reorder list/ Given a singly linked list L: L0→L1→…→Ln 1→Ln, reorder it to: L0→Ln→L1→Ln 1→L2→Ln 2→… Yo 阅读全文
posted @ 2017-11-27 22:51 lacker 阅读(293) 评论(0) 推荐(0) 编辑
摘要: ``` / Source : https://oj.leetcode.com/problems/linked list cycle/ Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it 阅读全文
posted @ 2017-11-27 22:49 lacker 阅读(120) 评论(0) 推荐(0) 编辑
摘要: ``` / Source : https://oj.leetcode.com/problems/linked list cycle ii/ Given a linked list, return the node where the cycle begins. If there is no cycl 阅读全文
posted @ 2017-11-27 22:49 lacker 阅读(164) 评论(0) 推荐(0) 编辑
摘要: ``` import java.util.*; /** * Source : https://oj.leetcode.com/problems/word-break-ii/ * * Given a string s and a dictionary of words dict, add spaces in s to construct a sentence * where each wo... 阅读全文
posted @ 2017-11-27 08:31 lacker 阅读(254) 评论(0) 推荐(0) 编辑
摘要: ``` import java.util.Arrays; import java.util.HashSet; import java.util.Set; /** * Source : https://oj.leetcode.com/problems/word-break/ * * * Given a string s and a dictionary of words dict, det... 阅读全文
posted @ 2017-11-27 08:30 lacker 阅读(148) 评论(0) 推荐(0) 编辑