There are a number of spherical balloons spread in two-dimensional space. For each balloon, provided input is the start and end coordinates of the hor ...
分类:
其他好文 时间:
2020-03-29 12:34:44
阅读次数:
57
1、find使用 不同于map(map有find方法),vector本身是没有find这一方法,其find是依靠algorithm来实现的。 #include <iostream>#include <algorithm>#include <vector> int main(){ using name ...
分类:
其他好文 时间:
2020-03-29 12:32:51
阅读次数:
86
RAC突然告警,客户端尝试连接时会报:ORA-12520: TNS:listener could not find available handler for requested type of server 错误。 现整理解决过程,以便于后续遇到此问题时快速处理。 1. 登入服务器,使用sqlpl ...
分类:
数据库 时间:
2020-03-29 09:12:07
阅读次数:
300
一对一,多对一的延迟加载: Account对应的User对象在查询时先不加载,等用到了再进行加载 首先在主配置文件里要设置两个选项 <!--配置参数--> <settings> <!--开启mybatis支持延迟加载--> <setting name="lazyLoadingEnabled" val ...
分类:
其他好文 时间:
2020-03-28 23:47:41
阅读次数:
117
只谈思路,和两数之和差??不多。把chars存入一个哈希表,然后对于words中的每个word,判断其字符是不是都在表中。 值得一提的是某word中的某字母可能多次出现,所以要考虑到这点。由于思路局限性,我的实现把word的每个字母也存入哈希表, 所以Can Be Formed的条件是word中每个 ...
分类:
其他好文 时间:
2020-03-28 23:19:01
阅读次数:
80
题目 When register on a social network, you are always asked to specify your hobbies in order to find some potential friends with the same hobbies. A “s ...
分类:
其他好文 时间:
2020-03-28 23:13:05
阅读次数:
76
ordered_set 可以在set中找到小于某个数的元素的个数 useful ...
分类:
其他好文 时间:
2020-03-28 22:01:30
阅读次数:
118
题目描述查看:https://leetcode-cn.com/problems/find-first-and-last-position-of-element-in-sorted-array/ 题目的意思是从一个有序的数组中,查找一个数,但是这个数是重复存在的,返回区间。题目要求的时间复杂度O(lo ...
分类:
编程语言 时间:
2020-03-28 21:42:00
阅读次数:
72
Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is yes, if 6 is a decimal number and 110 is a ...
分类:
其他好文 时间:
2020-03-28 13:19:11
阅读次数:
58
异常: java.lang.RuntimeException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache. ...
分类:
编程语言 时间:
2020-03-28 10:37:23
阅读次数:
71