摘要: 题目如下: Given a binary tree, flatten it to a linked list in-place. For example, given the following tree: The flattened tree should look like: 解题思路:递归,从 阅读全文
posted @ 2019-08-22 17:30 seyjs 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Implement a basic calculator to evaluate a simple expression string. The expression string contains only non-negativeintegers, +, -, *, / operat 阅读全文
posted @ 2019-08-22 16:18 seyjs 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given an array which consists of non-negative integers and an integer m, you can split the array into m non-empty continuous subarrays. Write an 阅读全文
posted @ 2019-08-22 14:40 seyjs 阅读(157) 评论(0) 推荐(0) 编辑