摘要: You are given the root node of a binary search tree (BST) and a value to insert into the tree. Return the root node of the BST after the insertion. It 阅读全文
posted @ 2020-10-06 22:57 Schwifty 阅读(101) 评论(0) 推荐(0)
摘要: Given an array of integers nums and an integer k, return the number of unique k-diff pairs in the array. A k-diff pair is an integer pair (nums[i], nu 阅读全文
posted @ 2020-10-06 22:30 Schwifty 阅读(128) 评论(0) 推荐(0)
摘要: A binary tree is named Even-Odd if it meets the following conditions: The root of the binary tree is at level index 0, its children are at level index 阅读全文
posted @ 2020-10-06 11:57 Schwifty 阅读(164) 评论(0) 推荐(0)
摘要: Design a parking system for a parking lot. The parking lot has three kinds of parking spaces: big, medium, and small, with a fixed number of slots for 阅读全文
posted @ 2020-10-06 04:49 Schwifty 阅读(248) 评论(0) 推荐(0)