摘要: Sort a linked list in *O*(*n* log *n*) time using constant space complexity. 阅读全文
posted @ 2019-06-24 23:45 yjxyy 阅读(1028) 评论(0) 推荐(0) 编辑
摘要: Given a linked list, return the node where the cycle begins. If there is no cycle, return `null`. 阅读全文
posted @ 2019-06-24 23:33 yjxyy 阅读(103) 评论(0) 推荐(0) 编辑
摘要: Given a **non-empty** string *s* and a dictionary *wordDict* containing a list of **non-empty** words, determine if *s* can be segmented into a space-separated sequence of one or more dictionary words. 阅读全文
posted @ 2019-06-24 23:29 yjxyy 阅读(1130) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, flatten it to a linked list in-place. 阅读全文
posted @ 2019-06-24 22:32 yjxyy 阅读(101) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, determine if it is a valid binary search tree (BST). 阅读全文
posted @ 2019-06-24 22:21 yjxyy 阅读(178) 评论(0) 推荐(0) 编辑