03 2017 档案

摘要:本周选择了贪心算法类的题型加以巩固,在LeetCode中难度系数为Hard。 题目: Suppose LeetCode will start its IPO soon. In order to sell a good price of its shares to Venture Capital, L 阅读全文
posted @ 2017-03-29 20:23 MT.Queen 阅读(469) 评论(0) 推荐(0)
摘要:本周依旧是做与图论相关的题目,作为对图论知识的巩固。 题目:279. Perfect Squares Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 阅读全文
posted @ 2017-03-26 22:33 MT.Queen 阅读(182) 评论(0) 推荐(0)
摘要:本周学习了DFS,因此在LeetCode中挑选了一道关于DFS的题目作为巩固。 题目:200. Number of Islands Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An 阅读全文
posted @ 2017-03-19 12:04 MT.Queen 阅读(145) 评论(0) 推荐(0)
摘要:本周对链表操作进行了巩固 题目: Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→… You must do this in-place without altering the n 阅读全文
posted @ 2017-03-12 21:36 MT.Queen 阅读(109) 评论(0) 推荐(0)
摘要:本周学习分治法,故特意挑选了相关习题巩固一下,并回顾一下分治法的思路 题目:Kth Largest Element in an Array Find the kth largest element in an unsorted array. Note that it is the kth large 阅读全文
posted @ 2017-03-05 13:57 MT.Queen 阅读(272) 评论(0) 推荐(0)

点击右上角即可分享
微信分享提示