摘要: Leetcode 101. Symmetric Tree Easy Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this bin 阅读全文
posted @ 2019-06-27 10:37 FlashX 阅读(84) 评论(0) 推荐(0) 编辑
摘要: Leetcode 70 Climbing Stairs Easy https://leetcode.com/problems/climbing-stairs/ You are climbing a stair case. It takes n steps to reach to the top. E 阅读全文
posted @ 2019-06-23 21:17 FlashX 阅读(105) 评论(0) 推荐(0) 编辑
摘要: Leetcode 53 Maximum Subarray Easyhttps://leetcode.com/problems/maximum-subarray/Given an integer array nums, find the contiguous subarray (containing 阅读全文
posted @ 2019-06-23 17:24 FlashX 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 参考网站: https://www.geeksforgeeks.org/insertion-sort/ 整体思想如下图,没错,和你想的一样,不要觉得不可能这么简单,确实就这么简单,但是代码写起来还是有一些注意的地方,否则写不出来。 写在后面: 理解代码没有捷径,就是干! 欢迎留言、点赞、交流、指正! 阅读全文
posted @ 2019-06-13 22:11 FlashX 阅读(222) 评论(0) 推荐(1) 编辑
摘要: https://leetcode.com/problems/sort-list/ Sort a linked list in O(n log n) time using constant space complexity. Example 1: Example 2: 下面代码参考连接: https: 阅读全文
posted @ 2019-06-10 23:05 FlashX 阅读(277) 评论(1) 推荐(2) 编辑