Spring之IoC 1. IoC与DI (1) IoC 控制反转( IoC, Inversion of Control) , 是一个概念, 是一种思想。 控制反转就 是对对象控制权的转移, 从程序代码本身反转到了 外部容器。 把对象的创建、 初始化、 销毁等工作交给spring容器来做。 由spr ...
分类:
编程语言 时间:
2019-04-17 18:05:04
阅读次数:
181
There are nn cities and mm roads in Berland. Each road connects a pair of cities. The roads in Berland are one-way. What is the minimum number of new ...
学习博客:https://blog.csdn.net/qq_31759205/article/details/75008659 RMQ(Range Minimum/Maximum Query),即区间最值查询,是指这样一个问题:对于长度为n的数列A,回答若干次询问RMQ(i,j),返回数列A中下标在 ...
分类:
其他好文 时间:
2019-04-15 22:59:59
阅读次数:
175
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given the fo ...
分类:
其他好文 时间:
2019-04-15 16:33:21
阅读次数:
147
一, 通用范式 cmake_minimum_required(VERSION 2.8) project (hello_cpp11) # 检查c++编译器标志,设置c++11支持变量include(CheckCXXCompilerFlag)CHECK_CXX_COMPILER_FLAG("-std=c ...
分类:
编程语言 时间:
2019-04-14 14:04:59
阅读次数:
368
Recommender Systems(推荐系统) Problem formulation(问题描述) nu:用户数量 nm:电影数量 r(i, j):用户j给电影评分时为1 y(i, j):用户j给电影i评的分数 Content-‐based recommendations(基于内容的推荐系统) ...
分类:
其他好文 时间:
2019-04-13 10:39:26
阅读次数:
229
一般模式下的命令: 插入命令 i 光标前插入 I 当前行开始 o 下一行 O 上一行插入新行 a 光标后插入 A 当前行末尾 定位命令 :set nu 显示行号 :set nonu 取消行号 gg 第一行 G 最后一行 :n 第n行 删除命令 x 删除光标字符 nx 删除光标所在处后的n各字符 dd ...
分类:
系统相关 时间:
2019-04-13 01:11:46
阅读次数:
154
1023 Have Fun with Numbers (20 分) 1023 Have Fun with Numbers (20 分) 1023 Have Fun with Numbers (20 分) Notice that the number 123456789 is a 9-digit nu ...
分类:
其他好文 时间:
2019-04-12 16:31:10
阅读次数:
171
问题: RMQ (Range Minimum/Maximum Query)问题是指:对于长度为n的数列A,回答若干询问RMQ(A,i,j)(i,j<=n),返回数列A中下标在i,j里的最小(大)值,也就是说,RMQ问题是指求区间最值的问题。 dp思想: dp[i][j]中存储的是从第j个数开始的2i ...
分类:
其他好文 时间:
2019-04-11 09:15:12
阅读次数:
172
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 the nearest l ...
分类:
其他好文 时间:
2019-04-11 01:16:47
阅读次数:
106