2017年6月22日
摘要: LeetCode 24 Swap Nodes in Pairs Question Given a linked list, swap every two adjacent nodes and return its head. For example, Given , you should retur 阅读全文
posted @ 2017-06-22 21:53 Silence_cnblogs 阅读(175) 评论(0) 推荐(0) 编辑
摘要: LeetCode 22 Generate Parentheses Question Given n pairs of parentheses, write a function to generate all combinations of well formed parentheses. For 阅读全文
posted @ 2017-06-22 20:38 Silence_cnblogs 阅读(225) 评论(0) 推荐(0) 编辑
摘要: LeetCode 20 Valid Parentheses Question Given a string containing just the characters , , , , and , determine if the input string is valid. The bracket 阅读全文
posted @ 2017-06-22 17:08 Silence_cnblogs 阅读(212) 评论(0) 推荐(0) 编辑
摘要: LeetCode 14 Longest Common Prefix Question Write a function to find the longest common prefix string amongst an array of strings. Solution Approach 1 阅读全文
posted @ 2017-06-22 15:57 Silence_cnblogs 阅读(198) 评论(0) 推荐(0) 编辑