Description:Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to t ...
分类:
其他好文 时间:
2021-03-18 14:37:13
阅读次数:
0
题目链接:http://poj.org/problem?id=2255 递归经典习题。具体见代码: #include <iostream> #include <cstring> using namespace std; char a[111], b[111]; void dfs(int L1, in ...
分类:
其他好文 时间:
2021-03-18 14:30:29
阅读次数:
0
response.setHeader("Cache-Control","no-cache"); This is used to prevent the browser from caching your dynamic content generated by a JSP or Servlet. Y ...
分类:
系统相关 时间:
2021-03-17 14:45:16
阅读次数:
0
进入IDEA 的工具下会发现有四个选项 其中第一个就是创建一个新的Java工程 第二个是导入一个工程 第三个是打开一个已有工程比如打开Eclipse项目 check out from version control 通过服务器的项目地址导入项目,可以是gethub上的项目 同时需要说明IDEA的项目 ...
分类:
其他好文 时间:
2021-03-17 14:09:51
阅读次数:
0
下载Jenkins Control Plugin 地址 Intellij中设置Jenkins 其中Crumb Data请求方式为:http://URL/crumbIssuer/api/json?tree=crumb.返回中即包含指定数据,如: { "_class": "org.jenkinsci.p ...
分类:
其他好文 时间:
2021-03-16 14:02:35
阅读次数:
0
Spring是一个开源的控制反转(IOC)和 面向切面(AOP)的容器框架,主要目的简化企业开发。 控制反转(Inversion of Control) 控制反转, 解决程序对象紧密耦合问题(工厂+反射+ 配置文件), 将程序中原来构造对象的权限,交给IoC容器来构造,当程序需要对象,找IoC容器获 ...
分类:
编程语言 时间:
2021-03-16 14:01:41
阅读次数:
0
zsh + oh my zsh 使用 切换bash 切换bash chsh -s /bin/bash 切换zsh chsh -s /bin/zsh 安装 oh my zsh ! 插件地址 https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins 主 ...
分类:
其他好文 时间:
2021-03-16 13:54:23
阅读次数:
0
效果图: 实现代码:js:view的类型原来1个js给拆分成了4个: view, controller, renderer, model 1、view:AbstractView的子类,这是工厂类:类需要解析 arch字段并设置其它3个类 2、Renderer :渲染器,来自 AbstractRend ...
分类:
其他好文 时间:
2021-03-16 13:41:17
阅读次数:
0
static/js/xxxx.js 这里定义按钮odoo.define('add.tree.view.buttons', function (require) { "use strict"; var core = require('web.core'); var ListController = r ...
分类:
其他好文 时间:
2021-03-16 13:30:43
阅读次数:
0
红黑树 相关概念 1 rb_tree 是一种高度平衡的搜索二叉树,其元素排列的规则有利于 search 和 insert,并同时保持适度的平衡。 2 rb_tree 提供遍历操作以及 iterator。元素放入后有一定的排列规则,按正常规则(++ iter)迭代器遍历时为输出为排序状态(sorted ...
分类:
其他好文 时间:
2021-03-16 13:19:30
阅读次数:
0