摘要: Problem Statement A dieter consumes calories[i] calories on the i-th day. A dieter consumes calories[i] calories on the i-th day. Given an integer k, 阅读全文
posted @ 2019-09-27 00:10 包子模拟面试 阅读(511) 评论(0) 推荐(0) 编辑
摘要: Problem Statement A transaction is possibly invalid if: A transaction is possibly invalid if: the amount exceeds $1000, or; if it occurs within (and i 阅读全文
posted @ 2019-09-12 04:18 包子模拟面试 阅读(467) 评论(0) 推荐(0) 编辑
摘要: Problem Statement Given a binary tree, return all root-to-leaf paths. Given a binary tree, return all root-to-leaf paths. Note: A leaf is a node with 阅读全文
posted @ 2019-09-01 06:02 包子模拟面试 阅读(175) 评论(0) 推荐(0) 编辑
摘要: Problem Statement Given a non-empty binary tree, find the maximum path sum. Given a non-empty binary tree, find the maximum path sum. For this problem 阅读全文
posted @ 2019-08-24 14:20 包子模拟面试 阅读(133) 评论(0) 推荐(0) 编辑
摘要: Problem Statement Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST. Implement an i 阅读全文
posted @ 2019-08-24 02:26 包子模拟面试 阅读(251) 评论(0) 推荐(0) 编辑
摘要: Problem Statement Implement a basic calculator to evaluate a simple expression string. Implement a basic calculator to evaluate a simple expression st 阅读全文
posted @ 2019-08-19 12:23 包子模拟面试 阅读(195) 评论(0) 推荐(0) 编辑
摘要: Problem Statement Implement a basic calculator to evaluate a simple expression string. The expression string contains only non-negative integers, +, - 阅读全文
posted @ 2019-08-10 14:20 包子模拟面试 阅读(202) 评论(0) 推荐(0) 编辑
摘要: Problem Statement Implement a basic calculator to evaluate a simple expression string. Implement a basic calculator to evaluate a simple expression st 阅读全文
posted @ 2019-08-09 14:11 包子模拟面试 阅读(165) 评论(0) 推荐(0) 编辑
摘要: Problem Statement Given a binary tree, determine if it is height-balanced. Given a binary tree, determine if it is height-balanced. For this problem, 阅读全文
posted @ 2019-08-06 13:01 包子模拟面试 阅读(142) 评论(0) 推荐(0) 编辑
摘要: Problem Statement Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. Given a non-negative integer nu 阅读全文
posted @ 2019-07-26 01:09 包子模拟面试 阅读(110) 评论(0) 推荐(0) 编辑