01 2018 档案
摘要:使用AES算法的时候,会发现下面的代码在windows每次产生确定的结果,但Linux就不同,导致无法正确解密 原因在于加红的部分SecureRaom的生成,Linux下默认的算法是“NativePRNG”, 而windows下默认是“SHA1PRNG”(sun提供的算法) 对于这两种算法 虽然Li
阅读全文
摘要:Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example: 暂时还没写出来
阅读全文
摘要: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
阅读全文
摘要:对于程序员而言,RSS是一个必须了解的东东,下面就是对它的定义,应用的简介 定义 应用 至于CSS客户端,可以用Foxmail,输入需要订阅的RSS地址即可 订阅后的效果如下: 参考:https://en.wikipedia.org/wiki/RSS
阅读全文
摘要:题目: Given a string, find the length of the longest substring without repeating characters. 问题的难点在于光标移动过程中,一旦遇到重复需要重新开始计算长度 第一次提交的代码如下: 提交后执行效率只击败了15.6
阅读全文
浙公网安备 33010602011771号