题目 This is a problem given in the Graduate Entrance Exam in 2018: Which of the following is NOT a topological order obtained from the given directed g ...
分类:
编程语言 时间:
2020-03-01 20:12:25
阅读次数:
90
题目: https://leetcode-cn.com/problems/compress-string-lcci/ 字符串压缩。利用字符重复出现的次数,编写一种方法,实现基本的字符串压缩功能。比如,字符串aabcccccaaa会变为a2b1c5a3。若“压缩”后的字符串没有变短,则返回原先的字符串 ...
分类:
其他好文 时间:
2020-03-01 16:01:32
阅读次数:
63
题目 In graph theory, an Eulerian path is a path in a graph which visits every edge exactly once. Similarly, an Eulerian circuit is an Eulerian path whi ...
分类:
其他好文 时间:
2020-02-29 20:51:39
阅读次数:
104
Sqlserver开启xp_cmdshell: EXEC sp_configure 'show advanced options', 1; RECONFIGURE WITH OVERRIDE; EXEC sp_configure 'Ole Automation Procedures', 1; REC ...
分类:
数据库 时间:
2020-02-28 18:35:33
阅读次数:
71
The cause behind the error Low disk space could be a reason for MySQL table being marked as “crashed”. When you have low space on your disk, some of t ...
分类:
其他好文 时间:
2020-02-27 20:49:35
阅读次数:
70
参考:word转pdf后保证图片清晰的方法 参考:Word转为PDF,里面的图片会变得不清楚? BUT,以上方法并没有实现。通过打印 pdf 获取的分辨率更高。 前提需要 word 本身图片高清,所以需要设置下 Options -> Advanced -> Image Size and Qualit ...
分类:
其他好文 时间:
2020-02-26 22:33:43
阅读次数:
64
Slicing12345L[:10:2] # [0, 2, 4, 6, 8]L[::5] # 所有数,每5个取一个# [0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95] L[:] # copy ... ...
分类:
编程语言 时间:
2020-02-26 14:11:08
阅读次数:
72
Xcode 的工程选项里有一项 Compress PNG Files,会对 PNG 进行 Premultiplied Alpha。游戏开发中会更加关注这个格式,省一些运行时计算。Premultiplied Alpha 是什么呢?Alpha Blending: To Pre or Not To Pre... ...
分类:
其他好文 时间:
2020-02-26 14:09:31
阅读次数:
63
题意 $n$ 排列,反复进行:将序列中为前缀最大值的数全部移动到序列末(两种数不改变相对位置),问经过多少次后第一次全部升序排列 做法 定义 :用high表示为前缀最大值,low则反之 考虑忽略$1$,那么$[2,n]$相对排好序后,假设用了$T$次,如果$1$在首,则答案为$T$,否则还要在进行一 ...
分类:
其他好文 时间:
2020-02-25 11:10:04
阅读次数:
62
迈克尔?贝尔菲奥尔 著 2012年出版 摘要: 美国国防部高级研究计划局(DARPA,Defense Advanced Research Projects Agency),是美国国防部下属的一个行政机构,负责研发用于军事用途的高新科技。本书通过描述几个不同领域的创新过程和成果,向人们展示了世界科研机 ...
分类:
其他好文 时间:
2020-02-25 10:03:25
阅读次数:
91