01 2018 档案

摘要:使用AES算法的时候,会发现下面的代码在windows每次产生确定的结果,但Linux就不同,导致无法正确解密 原因在于加红的部分SecureRaom的生成,Linux下默认的算法是“NativePRNG”, 而windows下默认是“SHA1PRNG”(sun提供的算法) 对于这两种算法 虽然Li 阅读全文
posted @ 2018-01-30 10:58 栖息之鹰 阅读(1072) 评论(0) 推荐(0)
摘要:Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example: 暂时还没写出来 阅读全文
posted @ 2018-01-07 18:01 栖息之鹰 阅读(98) 评论(0) 推荐(0)
摘要:There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity sh 阅读全文
posted @ 2018-01-05 18:50 栖息之鹰 阅读(103) 评论(0) 推荐(0)
摘要:对于程序员而言,RSS是一个必须了解的东东,下面就是对它的定义,应用的简介 定义 应用 至于CSS客户端,可以用Foxmail,输入需要订阅的RSS地址即可 订阅后的效果如下: 参考:https://en.wikipedia.org/wiki/RSS 阅读全文
posted @ 2018-01-03 11:18 栖息之鹰 阅读(517) 评论(0) 推荐(0)
摘要:题目: Given a string, find the length of the longest substring without repeating characters. 问题的难点在于光标移动过程中,一旦遇到重复需要重新开始计算长度 第一次提交的代码如下: 提交后执行效率只击败了15.6 阅读全文
posted @ 2018-01-02 14:55 栖息之鹰 阅读(200) 评论(0) 推荐(0)