摘要: https://leetcode.com/problems/minimum-index-sum-of-two-lists/ Suppose Andy and Doris want to choose a restaurant for dinner, and they both have a list 阅读全文
posted @ 2019-01-30 23:57 丧心病狂工科女 阅读(117) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/top-k-frequent-words/ Given a non-empty list of words, return the k most frequent elements. Your answer should be sorted 阅读全文
posted @ 2019-01-30 23:02 丧心病狂工科女 阅读(196) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/ Given a n x n matrix where each of the rows and columns are sorted in ascending 阅读全文
posted @ 2019-01-30 20:58 丧心病狂工科女 阅读(156) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/first-unique-character-in-a-string/ Given a string, find the first non-repeating character in it and return it's index. 阅读全文
posted @ 2019-01-30 20:35 丧心病狂工科女 阅读(94) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/sort-characters-by-frequency/ Given a string, sort it in decreasing order based on the frequency of characters. Example 阅读全文
posted @ 2019-01-30 20:31 丧心病狂工科女 阅读(104) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/sort-list/ Sort a linked list in O(n log n) time using constant space complexity. Example 1: Example 2: 代码: 归并排序 学到了 FHF 阅读全文
posted @ 2019-01-30 14:08 丧心病狂工科女 阅读(106) 评论(0) 推荐(0) 编辑
摘要: https://pintia.cn/problem-sets/994805342720868352/problems/994805345078067200 Suppose that all the keys in a binary tree are distinct positive integer 阅读全文
posted @ 2019-01-30 13:43 丧心病狂工科女 阅读(226) 评论(0) 推荐(0) 编辑
摘要: https://pintia.cn/problem-sets/994805342720868352/problems/994805344222429184 After each PAT, the PAT Center will announce the ranking of institutions 阅读全文
posted @ 2019-01-30 12:09 丧心病狂工科女 阅读(382) 评论(0) 推荐(0) 编辑
摘要: https://pintia.cn/problem-sets/994805342720868352/problems/994805343979159552 A clique is a subset of vertices of an undirected graph such that every 阅读全文
posted @ 2019-01-30 11:21 丧心病狂工科女 阅读(152) 评论(0) 推荐(0) 编辑
摘要: https://pintia.cn/problem-sets/994805342720868352/problems/994805343043829760 This is a problem given in the Graduate Entrance Exam in 2018: Which of 阅读全文
posted @ 2019-01-30 10:48 丧心病狂工科女 阅读(175) 评论(0) 推荐(0) 编辑
摘要: https://pintia.cn/problem-sets/994805342720868352/problems/994805343727501312 The lowest common ancestor (LCA) of two nodes U and V in a tree is the d 阅读全文
posted @ 2019-01-30 10:24 丧心病狂工科女 阅读(283) 评论(0) 推荐(0) 编辑