上一页 1 2 3 4 5 6 7 8 9 ··· 37 下一页

2017年12月21日

Leetcode:9. Palindrome Number

摘要: 这题要求不能使用额外的空间,我也就没做,看了下别人的代码,挺有意义的一道题目,出坏了。 解题思路:从右往左颠倒过来,看看这个值和原来的x值是不是一样,最后还要注意像20这种情况,也是的 阅读全文

posted @ 2017-12-21 10:00 Michael2397 阅读(116) 评论(0) 推荐(0) 编辑

2017年12月20日

《精通Spring4.X企业应用开发实战》读后感第七章(创建增强类)

摘要: 阅读全文

posted @ 2017-12-20 12:34 Michael2397 阅读(236) 评论(0) 推荐(0) 编辑

leetcode:8. String to Integer (atoi)

摘要: 这题难就难在不知道要考虑那些情况,也没个实例 参考:https://www.cnblogs.com/springfor/p/3896499.html有四个条件需要考虑: 自己参考上面四个条件写出了自己的代码,结果老是错。例如:“+-2”,结果应该是0 参考实现https://www.cnblogs. 阅读全文

posted @ 2017-12-20 10:45 Michael2397 阅读(102) 评论(0) 推荐(0) 编辑

leetcode:7. Reverse Integer

摘要: 这题简单,也花了我好长时间,我自己写的code比较麻烦,也没啥技巧:按正负性分类执行,先转化成字符串,用stringbuilder进行旋转,如果超出范围了就用try catch 这种方法要好一些:https://discuss.leetcode.com/topic/15134/very-short- 阅读全文

posted @ 2017-12-20 09:51 Michael2397 阅读(122) 评论(0) 推荐(0) 编辑

《精通Spring4.X企业应用开发实战》读后感第七章(AOP基础知识、jdk动态代理,CGLib动态代理)

摘要: 阅读全文

posted @ 2017-12-20 00:34 Michael2397 阅读(117) 评论(0) 推荐(0) 编辑

《精通Spring4.X企业应用开发实战》读后感第七章(AOP概念)

摘要: 阅读全文

posted @ 2017-12-20 00:09 Michael2397 阅读(154) 评论(0) 推荐(0) 编辑

2017年12月19日

Leetcode:6. ZigZag Conversion

摘要: 参考:http://blog.csdn.net/linhuanmars/article/details/21145039#reply,找规律 阅读全文

posted @ 2017-12-19 10:13 Michael2397 阅读(98) 评论(0) 推荐(0) 编辑

Leetcode:647. Palindromic Substrings

摘要: 参考第5题http://www.cnblogs.com/Michael2397/p/8036163.html,一下子就ac掉了,这里有个解释https://discuss.leetcode.com/topic/96884/very-simple-java-solution-with-detail-e 阅读全文

posted @ 2017-12-19 09:24 Michael2397 阅读(127) 评论(0) 推荐(0) 编辑

2017年12月18日

Leetcode:516. Longest Palindromic Subsequence

摘要: 参考:http://algorithms.tutorialhorizon.com/longest-palindromic-subsequence/ (老外写的博文,有图有字很形象)http://blog.csdn.net/thesnowboy_2/article/details/55251028(中 阅读全文

posted @ 2017-12-18 12:37 Michael2397 阅读(138) 评论(0) 推荐(0) 编辑

Leetcode:336. Palindrome Pairs

摘要: 这题一上来就会想到暴力破解,破解代码见http://blog.csdn.net/u012848330/article/details/51660542,超时 Accept参考:https://discuss.leetcode.com/topic/40657/150-ms-45-lines-java- 阅读全文

posted @ 2017-12-18 10:41 Michael2397 阅读(223) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 ··· 37 下一页

导航