[LeetCode]Letter Case Permutation

题目描述:

LeetCode 784. Letter Case Permutation

Given a string S, we can transform every letter individually to be lowercase or uppercase to create another string.  Return a list of all possible strings we could create.

Examples:
Input: S = "a1b2"
Output ...

继续阅读

[LeetCode]Minimum Distance Between BST Nodes

题目描述:

LeetCode 783. Minimum Distance Between BST Nodes

Given a Binary Search Tree (BST) with the root node root, return the minimum difference between the values of any two different nodes in the tree.

Example :

Input: root = [4,2,6,1 ...

继续阅读

年度归档