摘要: Given a string s, a k duplicate removal consists of choosing k adjacent and equal letters from s and removing them causing the left and the right side 阅读全文
posted @ 2021-03-28 23:49 北叶青藤 阅读(62) 评论(0) 推荐(0) 编辑
摘要: Given a string s containing only three types of characters: '(', ')' and '*', return true if s is valid. The following rules define a valid string: An 阅读全文
posted @ 2021-03-28 23:32 北叶青藤 阅读(68) 评论(0) 推荐(0) 编辑
摘要: Given the root of a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed to the original key plus 阅读全文
posted @ 2021-03-28 06:52 北叶青藤 阅读(43) 评论(0) 推荐(0) 编辑