上一页 1 2 3 4 5 6 ··· 8 下一页
该文被密码保护。 阅读全文
posted @ 2019-08-08 20:22 夜歌乘年少 阅读(2) 评论(1) 推荐(0)
摘要: 从这位大佬这里抄了解法2:https://www.cnblogs.com/grandyang/p/4441324.html 解法二: 我们也可以使用递归来做,我们用 head 记录每段的开始位置,cur 记录结束位置的下一个节点,然后我们调用 reverse 函数来将这段翻转,然后得到一个 new_ 阅读全文
posted @ 2019-08-08 16:56 夜歌乘年少 阅读(167) 评论(0) 推荐(0)
摘要: 这题很烦 做完满脑子都是箭头。 这里head之后 和tail之前 不能用next这种形式来给next复制 会造成循环链表 tailNode.next = headNode.next # 4 next point to 2 tailprevNode.next = headNode # 3 next p 阅读全文
posted @ 2019-08-08 16:06 夜歌乘年少 阅读(160) 评论(0) 推荐(0)
摘要: 在家瘫了半个月,虚弱时长2月半,又来水题了~ 内存感人,不过想不出来不用temp保存中间值的链表交换方法了。 Success Details Success Runtime: 40 ms, faster than 44.76% of Python3 online submissions for Sw 阅读全文
posted @ 2019-08-08 10:36 夜歌乘年少 阅读(206) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2019-08-07 15:10 夜歌乘年少 阅读(3) 评论(0) 推荐(0)
摘要: Linux: pstree Windows: ProcessExplorer or PS script:https://gist.github.com/atifaziz/9390344 or 阅读全文
posted @ 2019-08-05 17:41 夜歌乘年少 阅读(697) 评论(0) 推荐(0)
摘要: https://docs.microsoft.com/zh-cn/windows/security/threat-protection/auditing/basic-audit-directory-service-access 阅读全文
posted @ 2019-08-01 16:44 夜歌乘年少 阅读(237) 评论(0) 推荐(0)
摘要: hd=default,vdbench=C:\vdbench50406,shell=vdbench hd=hd1,system=host1 hd=hd2,system=host2 hd=hd3,system=host3 hd=hd4,system=host4 fsd=default,openflags=directio fsd=fsd01,anchor=x:\hd1_fs1_64KB_1MB,d... 阅读全文
posted @ 2019-07-16 11:42 夜歌乘年少 阅读(639) 评论(0) 推荐(0)
摘要: 网卡: 可见 ETH0-4都是10的优先级。 配置网卡优先级: 查看: 阅读全文
posted @ 2019-07-15 11:00 夜歌乘年少 阅读(2243) 评论(0) 推荐(0)
摘要: 一般是内核更新失败,首先用旧内核开机,修复新内核版本: 查看内核列表: sudo dpkg --get-selections |grep linux-image linux 4.15.0-34 generic linux 4.15.0-54 generic 首先尝试修复内核: sudo dpkg - 阅读全文
posted @ 2019-07-10 09:52 夜歌乘年少 阅读(4813) 评论(0) 推荐(0)
摘要: https://fdc.nal.usda.gov/fdc-app.html#/?query=ndbNumber:11352 阅读全文
posted @ 2019-07-09 15:53 夜歌乘年少 阅读(267) 评论(0) 推荐(0)
摘要: result: 阅读全文
posted @ 2019-07-09 15:41 夜歌乘年少 阅读(564) 评论(0) 推荐(0)
摘要: gpedit.msc Computer Configuration - Administrative Templates - Windows Components - Remote Desktop Services - Remote Desktop Session Host - Connection 阅读全文
posted @ 2019-07-02 17:52 夜歌乘年少 阅读(556) 评论(0) 推荐(0)
摘要: 改用SMB2: 阅读全文
posted @ 2019-06-29 14:48 夜歌乘年少 阅读(4941) 评论(0) 推荐(0)
摘要: parameter: 把每个fsd隔离在自己的目录里 vdbench就不会冲突了。 阅读全文
posted @ 2019-06-27 14:49 夜歌乘年少 阅读(827) 评论(1) 推荐(0)
摘要: https://www.v2ex.com/t/576805 阅读全文
posted @ 2019-06-25 10:34 夜歌乘年少 阅读(198) 评论(0) 推荐(0)
摘要: debian系: /etc/network/interfaces rpm系: /etc/sysconfig/network-scripts/ifcfg-ensxxx(网卡名) 若无效: sudo ip route add 8.41.0.0/16 via 8.46.192.1 windows: 阅读全文
posted @ 2019-06-24 15:32 夜歌乘年少 阅读(226) 评论(0) 推荐(0)
摘要: test: 8K 100%随机 50%读 64并发 IOPS 55V5 1W2左右 Dorado6000 2W左右 阅读全文
posted @ 2019-06-24 15:28 夜歌乘年少 阅读(1501) 评论(0) 推荐(0)
摘要: $行首 ^行尾 阅读全文
posted @ 2019-06-24 15:19 夜歌乘年少 阅读(2221) 评论(0) 推荐(0)
摘要: 会打印所有发现的ip地址: 阅读全文
posted @ 2019-06-24 15:17 夜歌乘年少 阅读(1483) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2019-06-18 18:02 夜歌乘年少 阅读(4) 评论(1) 推荐(0)
摘要: 1.首先检查powershell版本: 应该为5.1 低版本升级补丁:https://docs.microsoft.com/en-us/powershell/scripting/install/installing-windows-powershell?view=powershell-6 WIN7S 阅读全文
posted @ 2019-06-15 11:00 夜歌乘年少 阅读(505) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2019-06-10 14:32 夜歌乘年少 阅读(2) 评论(1) 推荐(0)
摘要: https://docs.python.org/zh-cn/3/tutorial/datastructures.html 列表推导式提供了一个更简单的创建列表的方法。常见的用法是把某种操作应用于序列或可迭代对象的每个元素上,然后使用其结果来创建列表,或者通过满足某些特定条件元素来创建子序列。 例如, 阅读全文
posted @ 2019-06-06 17:34 夜歌乘年少 阅读(368) 评论(0) 推荐(0)
摘要: https://www.ietf.org/rfc/rfc1928.txt 阅读全文
posted @ 2019-06-06 11:48 夜歌乘年少 阅读(204) 评论(0) 推荐(0)
摘要: https://docs.python.org/zh-cn/3/tutorial/controlflow.html 4.7.5. Lambda 表达式¶ 可以用 lambda 关键字来创建一个小的匿名函数。这个函数返回两个参数的和: lambda a, b: a+b 。Lambda函数可以在需要函数 阅读全文
posted @ 2019-06-05 17:29 夜歌乘年少 阅读(400) 评论(0) 推荐(0)
摘要: https://docs.python.org/zh-cn/3/tutorial/datastructures.html#tut-loopidioms 当在字典中循环时,用 items() 方法可将关键字和对应的值同时取出 >>> >>> knights = {'gallahad': 'the pu 阅读全文
posted @ 2019-06-05 11:46 夜歌乘年少 阅读(274) 评论(0) 推荐(0)
摘要: https://www.transifex.com/python-doc/python-newest/ 阅读全文
posted @ 2019-06-04 19:49 夜歌乘年少 阅读(169) 评论(0) 推荐(0)
摘要: 意外的简单,也可能是无耻的用了sort的缘故。 Runtime: 68 ms, faster than 96.70% of Python3 online submissions forMerge k Sorted Lists. Memory Usage: 17.3 MB, less than 19. 阅读全文
posted @ 2019-05-29 15:35 夜歌乘年少 阅读(183) 评论(0) 推荐(0)
摘要: REM:生成一个文件 del > Time.log echo > Time.log REM:获取系统日期及时间,同时将时间转换为8位(8:16:00-->08:16:00).写入文件。 :ABC set CurDate=%date:~0,10% set CurTime=%time% set hh=%CurTime:~0,2% if /i %hh% LSS 10 ... 阅读全文
posted @ 2019-05-29 09:36 夜歌乘年少 阅读(307) 评论(1) 推荐(0)
摘要: 参考资料:https://www.youtube.com/watch?v=sz1qaKt0KGQ DFS总结: 回到题目上: 树生成策略: )不能位于开头 [left == n right =n -1] 只有在前面有( 没有被匹配的时候(left大于right)的时候 才能加上 )[if left 阅读全文
posted @ 2019-05-29 00:27 夜歌乘年少 阅读(2971) 评论(1) 推荐(0)
摘要: 突然发现代码开头的注释取消注释就是ListNode的定义,可以本地调试了。。。 这道题注意两个链表可以同时为None. Runtime: 44 ms, faster than 86.67% of Python3 online submissions forMerge Two Sorted Lists 阅读全文
posted @ 2019-05-27 23:52 夜歌乘年少 阅读(206) 评论(0) 推荐(0)
摘要: 链表题没法在本地打断点调试真的烦。。。不过好在这题简单 注意考虑要去除的元素在正数第一位的情况就好。 Runtime: 40 ms, faster than 88.15% of Python3 online submissions forRemove Nth Node From End of Lis 阅读全文
posted @ 2019-05-27 22:47 夜歌乘年少 阅读(178) 评论(0) 推荐(0)
摘要: 参考资料:https://blog.csdn.net/puqutogether/article/details/45574903 写一个回溯法递归快要掉了半条命。。。什么时候菜到这种地步了。。。哎 注意在return前的那次循环后面要删除最后一个添加的字符,让循环可以继续,不会退出到主函数里。参考最 阅读全文
posted @ 2019-05-27 18:12 夜歌乘年少 阅读(218) 评论(0) 推荐(0)
摘要: 出差没有状态,啃不动前面几道硬骨头,倒着做。 Ver.1: 时间复杂度很美,但是无法处理 1 2 2 2 5, 1 1 1 2 3这类输入: Ver.2: 其实只要去掉末尾的判断,然后不断缩短list就行了: Runtime: 2480 ms, faster than 100.00% of Pyth 阅读全文
posted @ 2019-05-26 23:21 夜歌乘年少 阅读(472) 评论(0) 推荐(0)
摘要: testcase311/313: 跑半小时的代码: 阅读全文
posted @ 2019-05-18 14:56 夜歌乘年少 阅读(365) 评论(0) 推荐(0)
摘要: 方法有点蠢,没想好怎么不用循环取所有元素的前index位,就顺手这么写了。 Success Details Runtime: 32 ms, faster than 99.37% of Python3 online submissions forLongest Common Prefix. Memor 阅读全文
posted @ 2019-05-18 13:48 夜歌乘年少 阅读(189) 评论(1) 推荐(0)
摘要: 应该有比双循环更省时间的方法(in),可惜在客户现场网络不好,就用双循环做了。 Success Details Success Runtime: 96 ms, faster than 54.32% of Python3 online submissions forRoman to Integer. 阅读全文
posted @ 2019-05-15 19:21 夜歌乘年少 阅读(168) 评论(0) 推荐(0)
摘要: 做好分类,注意边界。 Success Details Success Runtime: 52 ms, faster than 98.97% of Python3 online submissions forInteger to Roman. Memory Usage: 13.3 MB, less t 阅读全文
posted @ 2019-05-15 12:53 夜歌乘年少 阅读(220) 评论(1) 推荐(0)
摘要: 随手写一个循环,42testcase TLE。 从两侧向中央循环会漏条件,先放着吧。 阅读全文
posted @ 2019-05-10 10:30 夜歌乘年少 阅读(154) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 8 下一页