摘要: ``` import java.util.ArrayList; import java.util.Arrays; import java.util.List; /** * Source : https://oj.leetcode.com/problems/palindrome-partitioning/ * * * Given a string s, partition s such t... 阅读全文
posted @ 2017-11-21 20:47 lacker 阅读(113) 评论(0) 推荐(0) 编辑
摘要: ``` import java.util.Arrays; /** * * Source : https://oj.leetcode.com/problems/palindrome-partitioning-ii/ * * Given a string s, partition s such that every substring of the partition is a palind... 阅读全文
posted @ 2017-11-21 20:47 lacker 阅读(192) 评论(0) 推荐(0) 编辑
摘要: ``` import java.util.Arrays; import java.util.Stack; / Source : https://oj.leetcode.com/problems/surrounded regions/ Given a 2D board containing 'X' a 阅读全文
posted @ 2017-11-21 20:23 lacker 阅读(153) 评论(0) 推荐(0) 编辑
摘要: ``` import java.util.Stack; / Source : https://oj.leetcode.com/problems/sum root to leaf numbers/ Given a binary tree containing digits from 0 9 only, 阅读全文
posted @ 2017-11-21 08:30 lacker 阅读(185) 评论(0) 推荐(0) 编辑
摘要: ``` import java.util.HashSet; import java.util.Set; / Source : https://oj.leetcode.com/problems/longest consecutive sequence/ Given an unsorted array 阅读全文
posted @ 2017-11-21 08:29 lacker 阅读(154) 评论(0) 推荐(0) 编辑