【回顾】 在上篇博客中,我们清楚了Spring的核心IOC,博客的结尾,提出了关于容器的问题。在Spring框架中,容器扮演者重要的角色。容器是什么?Java容器?Spring容器?这几个词,大家都很熟悉,但真正知道么?本篇博客的重点分析Spring中的核心容器。容器和Java容器不做详细介绍。 【 ...
分类:
编程语言 时间:
2018-08-25 00:44:48
阅读次数:
151
删掉字符串内的字符使得两字符串相同并且删掉的字符ascii码之和最小 ...
分类:
其他好文 时间:
2018-08-24 10:45:52
阅读次数:
154
Description You are given an integer N. Consider all possible segments (线段,划分)on the coordinate axis with endpoints at integer points with coordinates ...
分类:
其他好文 时间:
2018-08-22 20:31:18
阅读次数:
258
Nasta Rabbara 题意:简单来说就是, 现在有 n个点, m条边, 每次询问一个区间[ l , r ], 将这个区间的所有边都连上, 如果现在的图中有奇数环, 就输出 “Impossible”, 否者就输出 ”possible“。 题解: 步骤1:我们先找出每个最小的 [ l, r] 当这 ...
分类:
其他好文 时间:
2018-08-21 15:20:10
阅读次数:
136
On a broken keyboard, some of the keys are always stucked. So when you type some sentences, the characters corresponding to those keys will appear rep ...
分类:
其他好文 时间:
2018-08-19 18:26:26
阅读次数:
222
Given array of integers, find the maximal possible sum of some of its k consecutive elements. Example For inputArray = [2, 3, 5, 1, 6] and k = 2, the ...
分类:
其他好文 时间:
2018-08-17 00:43:42
阅读次数:
166
题目链接:https://leetcode.com/problems/all-paths-from-source-to-target/description/ Given a directed, acyclic graph of N nodes. Find all possible paths fr ...
分类:
其他好文 时间:
2018-08-16 13:51:25
阅读次数:
173
问题描述: Given an array of integers nums and a positive integer k, find whether it's possible to divide this array into k non-empty subsets whose sums ar ...
分类:
其他好文 时间:
2018-08-16 10:37:15
阅读次数:
214
- pytorch0.4有一些接口已经改变,且模型向下版本兼容,不向上兼容。 In PyTorch 0.4, is it recommended to use `reshape` than `view` when it is possible? Question about 'rebuild_ten ...
分类:
其他好文 时间:
2018-08-16 01:06:35
阅读次数:
351
1.添加索引后减少查询需要的行数,提高查询性能 (1) 建表 (2)插入数据 (3)执行查询 (4)分析查询结果,这次查询,要获取1行数据,但是要访问6行数据,执行的是全表扫描,如果表数据量变大的话,需要访问的数量会剧增,性能不高 (5)添加索引 (6)再次执行查询 (7)分析查询结果,这次查询,要 ...
分类:
数据库 时间:
2018-08-15 17:43:02
阅读次数:
167