1 class Solution: 2 def duplicateZeros(self, arr: List[int]) -> None: 3 """ 4 Do not return anything, modify arr in-place instead. 5 """ 6 n = len(arr ...
分类:
其他好文 时间:
2019-06-16 13:15:48
阅读次数:
87
143. Reorder List Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→… You may not modify the values in the list's nod ...
分类:
Web程序 时间:
2019-06-15 21:58:20
阅读次数:
201
题目如下: Given the root of a binary search tree with distinct values, modify it so that every node has a new value equal to the sum of the values of the ...
分类:
其他好文 时间:
2019-06-15 10:07:49
阅读次数:
68
SCOTT@PROD> insert /*+ append */ into b select * from a;4 rows created.SCOTT@PROD> select file#,block#,status from v$bh where objd=(select data_object ...
分类:
其他好文 时间:
2019-06-11 12:44:06
阅读次数:
125
1) Modify the ActiveMQ configuration file to clear out the messages queues. Note that after the broker restart, the parameter should be set back to ‘f ...
分类:
其他好文 时间:
2019-06-10 18:27:40
阅读次数:
98
Linux目录结构为树状结构,最顶级为‘/’ .,其他目录挂载到树中, 先了解一下绝对路径和相对路径: >>绝对路径: 由根目录 / 写起,如: /data/hosts >>相对路径: cd ../man --不从根目录开始 目录操作常用命令: 目录下所有子目录和文件 : ls 当前所在目录 : p ...
分类:
系统相关 时间:
2019-06-10 13:50:21
阅读次数:
114
string、int 常见类型之间相互转换 int & string 之间的转换 C++中更多的是使用流对象来实现类型转换 针对流对象 sstream实现 int,float 类型都可以实现 其他的方法 c_str()函数 string.c_str() 可以将string字符串转换成一个指向与str ...
分类:
编程语言 时间:
2019-06-09 13:08:42
阅读次数:
120
Redis的LRU算法 LRU算法背后的的思想在计算机科学中无处不在,它与程序的"局部性原理"很相似。在生产环境中,虽然有Redis内存使用告警,但是了解一下Redis的缓存使用策略还是很有好处的。下面是生产环境下Redis使用策略:最大可用内存限制为4GB,采用 allkeys lru 删除策略。 ...
分类:
编程语言 时间:
2019-06-07 22:51:03
阅读次数:
165
Linux内核提供了inotify通知接口,用来监控文件系统的各种变化情况,如文件存取、删除、移动、修改等。利用这个机制,可以非常方便地实现文件异动告警、增量备份,并针对目录或文件的变化及时作出响应。将inotify机制和rsync工具相结合,可以实现触发式备份(实时同步)——只要原始位置的文档发生变化,则立即启动增量备份操作,否则处于静默状态,这样,避免了周期性备份时存在的延迟性、周期过密等问题
分类:
其他好文 时间:
2019-06-03 19:02:47
阅读次数:
156
VM架构设计文档初稿v0.01 文档介绍 本文档是经过讨论,作为VM新架构设计开发中的重要依据。对该架构的整个系统的结构进行详实细致的描述。阐述框架结构,说明该架构所采取的设计策略和所有技术,并对相关内容作出统一的约定。为设计,编码,测试提供可以参考的模板和帮助。提高设计变更开发的效率,将头脑风暴的 ...
分类:
其他好文 时间:
2019-06-02 01:40:55
阅读次数:
128