摘要: class Solution { public: TreeNode* constructMaximumBinaryTree(vector& nums) { if (nums.size() == 0) return NULL; else if (nums.size() == 1) ... 阅读全文
posted @ 2018-10-07 23:42 Sempron2800+ 阅读(98) 评论(0) 推荐(0) 编辑
摘要: class Solution { public: int maxIncreaseKeepingSkyline(vector>& grid) { //找出每一行的最大值 const int N = 50; int ROW_HEIGHT[N]; int COL_HEIGHT[N]; int MIX_HEIGHT[... 阅读全文
posted @ 2018-10-07 23:29 Sempron2800+ 阅读(88) 评论(0) 推荐(0) 编辑
摘要: class Solution { public: string reverseOnlyLetters(string S) { int len = S.length(); queue Q; stack ST; vector V; for (int i = 0; i = 97 && c = 65 && c <= ... 阅读全文
posted @ 2018-10-07 21:08 Sempron2800+ 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 这问题很不好。。。 阅读全文
posted @ 2018-10-07 17:17 Sempron2800+ 阅读(75) 评论(0) 推荐(0) 编辑