09 2019 档案

[PAT]1043 Is It a Binary Search Tree (25 分)
摘要:一、题意 A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node contains only n 阅读全文

posted @ 2019-09-09 21:58 刘好念 阅读(21) 评论(0) 推荐(0)

[leetcode] 5182. Maximum Subarray Sum with One Deletion
摘要:一、题意 Given an array of integers, return the maximum sum for a non-empty subarray (contiguous elements) with at most one element deletion. In other wor 阅读全文

posted @ 2019-09-09 11:14 刘好念 阅读(6) 评论(0) 推荐(0)

[leetcode]5175. Can Make Palindrome from Substring
摘要:一、题意 Given a string s, we make queries on substrings of s. For each query queries[i] = [left, right, k], we may rearrange the substring s[left], ..., 阅读全文

posted @ 2019-09-01 17:52 刘好念 阅读(9) 评论(0) 推荐(0)

[PAT]1064 Complete Binary Search Tree (30 分)
摘要:一、题意 A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node contains only n 阅读全文

posted @ 2019-09-01 09:47 刘好念 阅读(9) 评论(0) 推荐(0)