摘要:
Given a binary search tree with non negative values, find the minimum absolute difference between values of any two nodes. Example: Note: There are at 阅读全文
摘要:
Given a group of two strings, you need to find the longest uncommon subsequence of this group of two strings. The longest uncommon subsequence is defi 阅读全文
摘要:
Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word to be right when one of 阅读全文
摘要:
Given a string s, find the longest palindromic subsequence’s length in s. You may assume that the maximum length of s is 1000. Example 1: Example 2: 分 阅读全文
摘要:
Given a binary tree, find the leftmost value in the last row of the tree. Example 1: Example 2: Note: You may assume the tree (i.e., the given root no 阅读全文
摘要:
Given scores of N athletes, find their relative ranks and the people with the top three highest scores, who will be awarded medals: “Gold Medal”, “Sil 阅读全文
摘要:
Given an integer, return its base 7 string representation. Example 1: Example 2: Note: The input will be in range of [ 1e7, 1e7]. class Solution { //水 阅读全文