A:Rotate Image Medium You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Note: You have to rotate the ...
分类:
其他好文 时间:
2019-05-05 23:39:41
阅读次数:
170
A: Subsets 题目:Given a set of distinct integers, nums, return all possible subsets (the power set). Note: The solution set must not contain duplicate s ...
分类:
其他好文 时间:
2019-05-05 23:31:09
阅读次数:
198
问题描述: ORACLE EXADATA 12.2 4节点 一个简单的expdp导出,在之前是正常的,但是隔了一天后出现问题了,具体报错信息如下: expdp '"/as sysdba"' DIRECTORY=dir1 DUMPFILE=vat_%U.dmp logfile=vat_20190505 ...
分类:
其他好文 时间:
2019-05-05 17:24:16
阅读次数:
212
第15条[66]: 为不可变类提供静态工厂, eg : Integer/BigInteger 使用了静态工厂缓存了一些常用的实例, 通常 Integer -128 ~ +127. BigInteger -16 ~ +16。 通过更改JVM参数可以改变Integer缓存的范围。在Idea中打开Run/ ...
分类:
编程语言 时间:
2019-05-05 15:53:43
阅读次数:
151
这个题目有两种做法, note: 注意head.random有可能是None的情况 1. S: O(n) create一个dictionary,然后先建dictionary和copy list以及next指针。然后再一遍,去建random指针。 2: S: O(1) 利用如下图所示的结构,然后再将c ...
分类:
其他好文 时间:
2019-05-04 11:55:30
阅读次数:
110
Floating Point Hazard 题目描述 Given the value of low, high you will have to find the value of the following expression: $\sum_{i=low}^{high}(\sqrt[3]{(i+ ...
分类:
其他好文 时间:
2019-05-03 21:10:56
阅读次数:
142
1、json模块 # json 在所有的语言之间都通用 : json序列化的数据 在python上序列化了 那在java中也可以反序列化# 能够处理的数据类型是非常有限的 : 字符串 列表 字典 数字# 字典中的key只能是字符串 # 向文件中记录字典 # 从文件中读取字典 # dump load ...
分类:
编程语言 时间:
2019-05-03 16:14:05
阅读次数:
149
import win32con import win32gui import time import math notepad = win32gui.FindWindow("Notepad","无标题 - 记事本") while True: # time.sleep(0.5) for size in... ...
分类:
编程语言 时间:
2019-05-03 14:45:16
阅读次数:
158
import win32con # 定义 import win32gui # 界面 import time # 时间 QQ= win32gui.FindWindow("Notepad","无标题 - 记事本") for num in range(120): time.sleep(1) if num%... ...
分类:
编程语言 时间:
2019-05-03 14:44:05
阅读次数:
222
import win32con import win32gui import time while True: time.sleep(1) notepad = win32gui.FindWindow("Notepad","无标题 - 记事本") for size in range(0,1620): ... ...
分类:
编程语言 时间:
2019-05-03 14:36:06
阅读次数:
149