10 2016 档案
摘要:https://leetcode.com/problems/longest-palindromic-substring/ 求最大回文的长度,其实这道题比上一道有意思。 方法1 循环查询 (该方案为O(N*N*N)) 方法2 动态规划 (该方案为O(N*N)) 由于没学过动态规划,特意去学习了一下 方
阅读全文
摘要:https://leetcode.com/problems/median-of-two-sorted-arrays/ There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median o
阅读全文
摘要:入门文档:https://github.com/qibaoguang/Spring-Boot-Reference-Guide 安装gradle 官方下载 https://gradle.org/gradle-download/,建议用迅雷。 环境变量配置:http://jingyan.baidu.co
阅读全文
摘要:寻找最长的不重复串,略像滑动窗口。 上面这个粗鲁的代码,马马虎虎毕竟打败51 ~61%的code,lastIndexOf有优化的空间。 不过答案真是美妙的活动窗口实现,赞!使用了字符作为坐标,索引作为值。
阅读全文
摘要:两数之和(考察链表操作): 链表长度不一,有进位情况,最后的进位需要新增节点。 码出来的代码不不如答案,哎,超级简洁:
阅读全文

浙公网安备 33010602011771号