题目如下: Given a binary tree root, a node X in the tree is named good if in the path from root to X there are no nodes with a value greater than X. Retur ...
分类:
其他好文 时间:
2020-06-04 10:33:57
阅读次数:
77
题目链接:https://vjudge.net/problem/POJ-2796 题意:求一个区间内的最小值乘以这个区间元素和的最大值 和poj2082的思路基本一样,对于区间内每个元素,都可以作为最小值。那么尽量往左右延伸到第一个比它小的数,记录下延伸之前的一个位置l[i]和r[i]。由此感觉单调 ...
分类:
其他好文 时间:
2020-05-29 21:26:43
阅读次数:
51
一、OC配置的基本条件与工具软件1.1、准备Mac平台,包括实体机平台和虚拟机平台。1.2、下载最新镜像并核对MD5,制作安装U盘。1.3、工具软件:loverConfigurator(Clover配置工具),OpenCoreConfigurator(持续更新中),Hackintool(综合工具),PlistEditPro(Plist文件工具),IORegistryExplorer(路径工具),B
分类:
移动开发 时间:
2020-05-21 10:29:18
阅读次数:
1380
Hey, what are you doing? 你干什么 Jesus! 天哪 Did you get a good look? 你看清肇事的车了吗 Blue Toyota Camry, it's all I saw.只看到是辆蓝色丰田佳美 It's the Wharton's dog. 是沃顿家的 ...
分类:
其他好文 时间:
2020-05-20 20:12:43
阅读次数:
81
"题目链接" 记忆化搜索 这是一道区间DP的模板题。初学dp的话还是记忆化搜索好理解一些,很多dp其实也是从记忆化搜索转换过来的。考虑最后一步,我们要把两堆石子合并成一堆,那么肯定是某一个点为分割点分成的两堆石子,而这两堆石子也是由某一个点为分割点组成的,如此递推下去。所以我们倒着把一堆石子拆成两堆 ...
分类:
其他好文 时间:
2020-05-19 12:49:37
阅读次数:
62
需求: 3、写一个商品管理的程序 功能1:添加商品 功能2:删除商品信息 功能3:修改商品信息 功能4:查看商品,输入all,查看所有商品,输入单个商品名称查看单个商品信息 商品格式存在文件中,goods.json 例子是在goods.py import json FILE_NAME = 'good ...
分类:
其他好文 时间:
2020-05-16 20:42:29
阅读次数:
94
DRY原则:(don’t repeat yourself): writing code more than once is not a good fit for a lazy developer ;) It also makes your software more difficult to mai ...
分类:
其他好文 时间:
2020-05-13 11:53:27
阅读次数:
56
一改以前 本次先上代码 package good; //Evaluate complex expressions import java.util.Scanner; public class Example { public static void main(String[] arg) {//tes ...
分类:
其他好文 时间:
2020-05-12 09:47:25
阅读次数:
65
Hello,这是我的一篇测试文章 代码测试 列表测试 good test ...
分类:
其他好文 时间:
2020-05-09 20:51:40
阅读次数:
53
1. Good Morning! 2. Good Morning! 3. How can help you? 4. I unserstand that the school organises... 5. umm, trips to different... 6. Yes, we run five ...
分类:
其他好文 时间:
2020-05-06 20:10:54
阅读次数:
95