摘要:
Say you have an array for which the *i*th element is the price of a given stock on day *i*.
If you were only permitted to complete at most one transaction 阅读全文
摘要:
Given a string containing just the characters `'('`, `')'`, `'{'`, `'}'`, `'['` and `']'`, determine if the input string is valid. 阅读全文
摘要:
输入某二叉树的前序遍历和中序遍历的结果,请重建出该二叉树。 阅读全文
摘要:
输入一个链表,按链表值从尾到头的顺序返回一个ArrayList。 阅读全文