随笔分类 - LeetCode笔记
摘要:原博客地址: https://www.cnblogs.com/brucemengbm/p/6875340.html 五大经常使用算法 之 动态规划法 一、基本概念 动态规划过程是:每次决策依赖于...
阅读全文
摘要:题目You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only cons...
阅读全文
摘要:题目On a staircase, the i-th step has some non-negative cost cost[i] assigned (0 indexed).Once you pay the cost, you can either climb on...
阅读全文
摘要:博客出处: https://blog.csdn.net/u013309870/article/details/75193592 ...
阅读全文
摘要:题目——翻转二叉树翻转一棵二叉树。示例:输入: 4 / \ 2 7 / \ / \1 3 6 9输出: 4 / \ 7 2 / \ / \9 6 3 1备注:这个问题是受到 Max Howel...
阅读全文