摘要: (leetcode给的范例已经不是模糊了 根本就是导向答题者往错误的地方想,还是要自己做好分类。 错误的思路,无法处理字符串中央的.*代表匹配0次: 阅读全文
posted @ 2019-05-04 20:39 夜歌乘年少 阅读(164) 评论(0) 推荐(0)
摘要: 简单题,如果不转string要牺牲一些时间复杂度: Submission Detail 11509 / 11509 test cases passed. Status: Accepted Runtime: 128 ms Memory Usage: 13.2 MB Submitted: 1 minut 阅读全文
posted @ 2019-05-04 18:21 夜歌乘年少 阅读(154) 评论(0) 推荐(0)
摘要: 分 空白 无符号 正号 负号 无意义符号分别讨论: 有点难看 应该写成函数分开的 Submission Detail 1079 / 1079 test cases passed. Status: Accepted Runtime: 44 ms Memory Usage: 13.3 MB Submit 阅读全文
posted @ 2019-05-03 12:27 夜歌乘年少 阅读(161) 评论(0) 推荐(0)
摘要: 注意翻转后不要超限: Submission Detail 1032 / 1032 test cases passed. Status: Accepted Runtime: 40 ms Memory Usage: 13.2 MB Submitted: 0 minutes ago 1032 / 1032 阅读全文
posted @ 2019-04-30 18:43 夜歌乘年少 阅读(187) 评论(0) 推荐(0)
摘要: Submission Detail 1158 / 1158 test cases passed. Status: Accepted Runtime: 76 ms Memory Usage: 13.4 MB Submitted: 2 hours, 17 minutes ago 1158 / 1158  阅读全文
posted @ 2019-04-29 14:12 夜歌乘年少 阅读(209) 评论(0) 推荐(0)
摘要: 想了很多方法 搞轴对称,算对称轴,偶数都搞出了一堆0.5在那加加减减,最后发现在移轴之前可能就返回了。 testcase101: 后来发现稍微做下优化 提前return就能达到时间限制。 103 / 103 test cases passed. Accepted Runtime: 8876 ms M 阅读全文
posted @ 2019-04-27 21:26 夜歌乘年少 阅读(174) 评论(1) 推荐(0)
摘要: 开始觉得挺简单的 写完发现这个时间超限了: 用pycharm跑了下 要4秒,结果就是它自己。[testcase:85] 发现之前判断轴对称的方法太低级了 不用逐位判断 轴对称的前一半和后一半的逆序是同一字符串即可。 testcase:95 f比g多一个 testcase:98 单个testcase耗 阅读全文
posted @ 2019-04-27 00:21 夜歌乘年少 阅读(206) 评论(0) 推荐(0)
摘要: 开始以为是求m n的中位数然后再求平均数, 被-2 -1 和 3 打脸 无耻的用下list.srot()轻松通过(内存还是惨不忍睹 Runtime: 60 ms, faster than 96.75% of Python3 online submissions for Median of Two S 阅读全文
posted @ 2019-04-26 10:49 夜歌乘年少 阅读(223) 评论(1) 推荐(0)
摘要: 只要注意点最长非重复字串出现在字符串末尾的情况就好,挺简单的。(时间和内存都惨不忍睹) 阅读全文
posted @ 2019-04-26 00:21 夜歌乘年少 阅读(214) 评论(0) 推荐(0)
摘要: 我真是个大菜B*10 幸好leetcode的内存给的比较宽松 不然妥妥的内存超限。 Submission Detail 1563 / 1563 test cases passed. Status: Accepted Runtime: 88 ms Memory Usage: 13.3 MB Submi 阅读全文
posted @ 2019-04-25 20:04 夜歌乘年少 阅读(187) 评论(0) 推荐(0)
摘要: https://www.itechtics.com/download-google-chrome-builds-offline-installers/ 阅读全文
posted @ 2019-04-24 17:25 夜歌乘年少 阅读(1170) 评论(0) 推荐(0)
摘要: https://docs.microsoft.com/en-us/powershell/scripting/install/installing-windows-powershell?view=powershell-6 阅读全文
posted @ 2019-04-24 15:50 夜歌乘年少 阅读(313) 评论(0) 推荐(0)
摘要: https://python3-cookbook.readthedocs.io/zh_CN/latest/c07/p03_attach_informatinal_matadata_to_function_arguments.html 阅读全文
posted @ 2019-04-22 20:09 夜歌乘年少 阅读(406) 评论(1) 推荐(0)
摘要: 准备文件: debian-9.8.0-amd64-DVD-1.iso debian-9.8.0-amd64-DVD-2.iso debian-9.8.0-amd64-DVD-3.iso 挂载: root@debian:~# mount -t iso9660 -o loop /debian/debia 阅读全文
posted @ 2019-04-22 16:49 夜歌乘年少 阅读(857) 评论(1) 推荐(0)
摘要: 新安装的debian9.8 with XFCE 发现没有ssh,下载debian-9.8.0-amd64-DVD-1.iso并挂在到ESXi虚拟机/media/cdrom0. 清空或保存/etc/apt/sources.list apt添加光盘为安装源: 修改sshd配置: 改为: 重启ssh: s 阅读全文
posted @ 2019-04-22 15:47 夜歌乘年少 阅读(1331) 评论(0) 推荐(0)
摘要: 题目: 答案: 过程: 以B为例,192.168.9.140/27 /27 掩码是 8 8 8 111 00000 192.168.9.140是这个网段里的一个地址 140是 10001100 所以这个子网的网络号是100 子网从192.168.9.128开始 111 00000 后面的0指的是1+ 阅读全文
posted @ 2019-04-20 17:44 夜歌乘年少 阅读(470) 评论(0) 推荐(0)
摘要: https://syncthing.net/ 另外两种1.filezila 2.python -m http 阅读全文
posted @ 2019-04-20 09:50 夜歌乘年少 阅读(129) 评论(0) 推荐(0)
摘要: 来自多位GitHub网友在GitHub分享的几组学习课程项目, 学习课程包含清华,北大,浙大,中科大,上海交大, 等中国多所名校的英语,AI高数,人工智能等课程以及一些讲义考题。 如果你想了解这些大学的专业课程知识,可以看看这些项目,或许对你有帮助, 当然,如果你是这些大学的大学生,也欢迎你帮忙共同 阅读全文
posted @ 2019-04-20 00:02 夜歌乘年少 阅读(296) 评论(0) 推荐(0)
摘要: 1. 打开“运行”,输入“regedit” 并回车。 2. 找到以下注册表路径,将Attributes的值改为 2: (原为1 HKEY_LOCAL_MACHINE \SYSTEM \CurrentControlSet \Control \Power \PowerSettings \7516b95f 阅读全文
posted @ 2019-04-19 22:37 夜歌乘年少 阅读(997) 评论(1) 推荐(0)
摘要: 首先更新pip自身: 查询过期包: Package Version Latest Type matplotlib 3.0.2 3.0.3 wheelpandas 0.23.4 0.24.2 wheelpyparsing 2.3.0 2.4.0 wheelpython-dateutil 2.7.5 2 阅读全文
posted @ 2019-04-18 10:56 夜歌乘年少 阅读(392) 评论(0) 推荐(0)
摘要: https://www.v-front.de/p/esxi-customizer-ps.html 阅读全文
posted @ 2019-04-17 14:22 夜歌乘年少 阅读(1623) 评论(0) 推荐(0)
摘要: https://blog.51cto.com/chinahao/1880943 阅读全文
posted @ 2019-04-15 19:12 夜歌乘年少 阅读(606) 评论(0) 推荐(0)
摘要: RHEL: 使用YUM安装Oracle必要软件包,将操作系统ISO文件“rhel-server-6.5-x86_64.iso”分别上传至两个节点主机“/root”目录,以root用户登录,执行以下命令: 配置YUM源参数文件,以root用户登录,编辑“/etc/yum.repos.d/local.r 阅读全文
posted @ 2019-04-15 16:07 夜歌乘年少 阅读(345) 评论(1) 推荐(0)
摘要: New-SmbShare -Name share-name -Path C:\share -FolderEnumerationMode AccessBased -CachingMode Documents -EncryptData $True -FullAccess Everyone 阅读全文
posted @ 2019-04-10 10:17 夜歌乘年少 阅读(740) 评论(0) 推荐(0)
摘要: http://www.cryer.co.uk/brian/windows/hyper-v-server/help_computer_cannot_be_managed.htm Enable COM+ Network Access(DCOM-in) and all rules of Remote Ev 阅读全文
posted @ 2019-04-10 10:15 夜歌乘年少 阅读(892) 评论(0) 推荐(0)
摘要: http://www.cryer.co.uk/brian/windows/hyper-v-server/help_disk_management_could_not_start_virtual_disk_service.htm Windows Hyper-V-Server 阅读全文
posted @ 2019-04-09 15:19 夜歌乘年少 阅读(166) 评论(0) 推荐(0)
摘要: wiki:https://en.wikipedia.org/wiki/Castanospermum inner:http://blog.sciencenet.cn/blog-309517-770951.html 阅读全文
posted @ 2019-04-08 14:22 夜歌乘年少 阅读(471) 评论(1) 推荐(0)
摘要: https://fosschef.wordpress.com/2010/12/26/x11-forwarding-of-ssh/ 阅读全文
posted @ 2019-04-04 20:50 夜歌乘年少 阅读(269) 评论(0) 推荐(0)
摘要: https://en.wikichip.org/wiki/amd/microarchitectures/zen https://en.wikichip.org/wiki/amd/microarchitectures/zen 阅读全文
posted @ 2019-04-04 20:45 夜歌乘年少 阅读(718) 评论(0) 推荐(0)
摘要: 远程安装持续的pending: 本地安装报“NFS directory cannot be used” 修改安装包 安装目录 的权限, 从777改回775. 就可以解决这个报错。 阅读全文
posted @ 2019-04-03 10:26 夜歌乘年少 阅读(697) 评论(0) 推荐(0)
摘要: http://web.mit.edu/~simsong/www/ugh.pdf 阅读全文
posted @ 2019-04-02 11:43 夜歌乘年少 阅读(237) 评论(0) 推荐(0)
摘要: https://dillinger.io/ 工具: https://typora.io/#windows 阅读全文
posted @ 2019-03-28 10:30 夜歌乘年少 阅读(129) 评论(0) 推荐(0)
摘要: #!/bin/bash linenumber=$(cat remoteIP.cfg |wc -l) currentline=0 for ip in $(cat remoteIP.cfg) do currentline=$[$currentline+1] echo "linenumber:$currentline value:$ip" done 阅读全文
posted @ 2019-03-27 11:49 夜歌乘年少 阅读(775) 评论(1) 推荐(0)
摘要: 1.在ubuntu上安装sshpass 2.分别在两台的root路径下放上升级脚本: cent:/root/upgrade.sh ubuntu:/root/upgrade.sh 3.当前用户目录下创建remoteIP.cfg 写下两台主机的IP 4.当前用户目录下创建uniupgrade.sh 5. 阅读全文
posted @ 2019-03-26 11:35 夜歌乘年少 阅读(535) 评论(1) 推荐(0)
摘要: 一级域名,如baidu: 二级域名 如有道公开课 不带协议名,不带www。 用127.0.0.1也可以。 阅读全文
posted @ 2019-03-20 00:37 夜歌乘年少 阅读(3176) 评论(0) 推荐(0)
摘要: select to_char(scn_to_timestamp(ORA_ROWSCN),'yyyy-mm-dd hh24:mi:ss') insert_time from tablename; 阅读全文
posted @ 2019-03-11 11:37 夜歌乘年少 阅读(9523) 评论(1) 推荐(0)
摘要: desktop: https://docs.microsoft.com/en-us/windows/desktop/index server:https://docs.microsoft.com/en-us/windows-server/storage/disk-management/overvie 阅读全文
posted @ 2019-03-08 14:55 夜歌乘年少 阅读(871) 评论(1) 推荐(0)
摘要: “如果天空是黑暗的,那就摸黑生存;如果发出声音是危险的,那就保持沉默;如果自觉无力发光的,那就蜷缩于墙角。但不要习惯了黑暗,就为黑暗辩护;不要为自己的苟且而得意;不要嘲讽那些比自己更勇敢更热情的人们。我们可以卑微如尘土,不可以扭曲如蛀虫。” --季业 阅读全文
posted @ 2019-03-06 10:13 夜歌乘年少 阅读(1595) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/softidea/p/5147090.html 阅读全文
posted @ 2019-03-05 17:45 夜歌乘年少 阅读(107) 评论(0) 推荐(0)
摘要: Get-InitiatorID Get-InitiatorPort 阅读全文
posted @ 2019-03-05 15:04 夜歌乘年少 阅读(301) 评论(0) 推荐(0)