概念 先讲一下离散化操作的概念,举个例子会比较好说明.对于一组数组比如a[5]=6,9,5,5,4.进行离散化操作后就变成3,4,2,2,1.也就是说当需要用到的信息与数的绝对大小无关而与相对大小有关的时候就可以用上离散化操作. 实现 实现离散化操作需要用到两个函数 unique函数 和 lower ...
分类:
其他好文 时间:
2019-04-08 21:26:44
阅读次数:
194
表:采用26个英文字母(区分大小写)和0-9的自然数(经常不需要)加上下划线'_'组成,命名简洁明确,多个单词用下划线'_'分隔1.全部小写命名,禁止出现大写2.禁止使用数据库关键字,如:name,time ,datetime,password等3.用单数形式表示名称,例如,使用 employee, ...
分类:
数据库 时间:
2019-04-08 15:15:42
阅读次数:
162
Description: A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or r ...
分类:
其他好文 时间:
2019-04-04 20:25:49
阅读次数:
147
Description: A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or r ...
分类:
其他好文 时间:
2019-04-04 17:08:21
阅读次数:
174
class Solution: def uniqueMorseRepresentations(self, words): lib = [".-", "-...", "-.-.", "-..", ".", "..-.", "--.", "....", "..", ".---", "-.-", ".-.... ...
分类:
其他好文 时间:
2019-04-04 09:55:21
阅读次数:
144
UNIQUE 约束唯一标识数据库表中的每条记录。 UNIQUE 和 PRIMARY KEY 约束均为列或列集合提供了唯一性的保证。 PRIMARY KEY 拥有自动定义的 UNIQUE 约束。 请注意,每个表可以有多个 UNIQUE 约束,但是每个表只能有一个 PRIMARY KEY 约束。 SQL ...
分类:
数据库 时间:
2019-04-04 09:18:54
阅读次数:
296
Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the s ...
分类:
其他好文 时间:
2019-04-02 12:38:18
阅读次数:
277
在用户文件夹下新建.pip文件夹及pip.conf文件,写入 有多个pip的需要修改对应pip名称 写入文件后可输入以下指令查看是否写入成功 ...
分类:
系统相关 时间:
2019-04-01 15:35:06
阅读次数:
420
Title: International Morse Code defines a standard encoding where each letter is mapped to a series of dots and dashes, as follows: "a" maps to ".-", ...
分类:
其他好文 时间:
2019-03-31 11:12:36
阅读次数:
151