摘要:
#include #include using namespace std; #define N 100 int parent[N]; struct road{ int begin; int end; int value; }; bool cmp(road a, road b){ return a.value < b.value; } int fi... 阅读全文
摘要:
Nov, 9, 2017. https://leetcode.com/problemset/algorithms/?topicSlugs=union-find%2Clinked-list Given an unsorted array of integers, find the length of 阅读全文
摘要:
Date: Nov. 8, 2017. Problem: https://leetcode.com/problems/maximal-rectangle/description/ Description: Given a 2D binary matrix filled with 0's and 1' 阅读全文
摘要:
Date: Nov, 7, 2017. Problem: https://leetcode.com/problems/merge-k-sorted-lists/discuss/ Description: Merge k sorted linked lists and return it as one 阅读全文
摘要:
Date: Nov. 6, 2017 Problem: https://leetcode.com/problems/smallest-range/description/ Description: You have k lists of sorted integers in ascending or 阅读全文
摘要:
Date: Nov. 4, 2017 Problem: https://leetcode.com/problems/largest-rectangle-in-histogram/description/ Description: Given n non-negative integers repre 阅读全文
摘要:
Date: Nov. 3, 2017 Problem: https://leetcode.com/problems/jump-game-ii/description/ Description: Given an array of non-negative integers, you are init 阅读全文
摘要:
Date: Nov. 2, 2017 Problem: https://leetcode.com/problems/trapping-rain-water/description/ Description: Given n non-negative integers representing an 阅读全文
摘要:
Date: Nov. 1, 2017 Problem: https://leetcode.com/problems/first-missing-positive/description/ Description: Given an unsorted integer array, find the f 阅读全文
摘要:
Date: Oct. 31, 2017 Problem: https://leetcode.com/problems/median-of-two-sorted-arrays/solution/ Description: There are two sorted arrays nums1 and nu 阅读全文