Given an array of integers, find out whether there are two distinct indices i and j in the array such that the absolute difference between nums[i] and ...
分类:
编程语言 时间:
2017-04-24 12:27:08
阅读次数:
252
similarity: 1. struct is class, can declare, define field funcion struct Person { int age; int height; void SetAge(int age); int GetAge();};class Pers ...
分类:
其他好文 时间:
2017-04-23 17:58:42
阅读次数:
97
Given a binary tree, return the tilt of the whole tree.The tilt of a tree node is defined as the absolute difference between the sum of all left subtr ...
分类:
其他好文 时间:
2017-04-23 11:58:17
阅读次数:
165
传送门 Description You have a positive integer m and a non-negative integer s. Your task is to find the smallest and the largest of the numbers that have ...
分类:
其他好文 时间:
2017-04-22 20:47:52
阅读次数:
231
Given a binary search tree with non-negative values, find the minimum absolute difference between values of any two nodes. Example: Note: There are at ...
分类:
其他好文 时间:
2017-04-22 15:46:51
阅读次数:
195
一、集合 关系测试 交集: 两个都有 .intersettion() 或用 & 符号 差集: 列表a有,列表b没有 .difference() 或用 - 符号 并集: 两列表合并,去重 .union() 或用 | 符号 合并: .update() 会更改数据 删除: .discard() .pop( ...
分类:
编程语言 时间:
2017-04-18 23:42:06
阅读次数:
288
Variance is closely related to overfitting. High variance is usually caused by training a powerful model but with limited data, in other words, traini ...
分类:
其他好文 时间:
2017-04-18 22:13:20
阅读次数:
111
Redis是一种高级key-value数据库。它跟memcached类似,不过数据可以持久化,而且支持的数据类型很丰富。有字符串,链表,集 合和有序集合。支持在服务器端计算集合的并,交和补集(difference)等,还支持多种排序功能。所以Redis也可以被看成是一个数据结构服务 器。 Redis ...
分类:
其他好文 时间:
2017-04-17 20:34:34
阅读次数:
254
Mybatis处理“一对多”的关系时,需要用到associasion元素。处理”多对一“用collection元素来实现(这两个元素在之前mapper文件中提到过)。 本例子中,假设一名User可以有多个Orders,用associasion来实现关联关系 首先数据库表结构 Orders实体类 Or ...
分类:
移动开发 时间:
2017-04-13 20:02:43
阅读次数:
259