摘要:
题目要求 Given 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 sum of 阅读全文
摘要:
题目要求 Given a column title as appear in an Excel sheet, return its corresponding column number. For example: 题目分析及思路 给出excel表格中的列标题,要求返回对应的列数字(正如例子所示)。 阅读全文
摘要:
题目要求 You need to construct a string consists of parenthesis and integers from a binary tree with the preorder traversing way. The null node needs to b 阅读全文
摘要:
题目要求 Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in th 阅读全文
摘要:
题目要求 Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may c 阅读全文