2017年5月13日

C#中&和&&,|和||区别

摘要: 当两者都为逻辑运算符时。 其实没什么差别。 &&和||当已经确定结果时,不会对第二个操作数求值。也不知道什么情况会用到这个差别。做个笔记好了。 http://blog.csdn.net/kebi007/article/details/52672470 这个博主贴了一个测试代码。看一下马上就理解了。 阅读全文

posted @ 2017-05-13 16:20 炮二平五 阅读(298) 评论(0) 推荐(0) 编辑

leetcode 564. Find the Closest Palindrome

摘要: leetcode564题目地址 Given an integer n, find the closest integer (not including itself), which is a palindrome. The 'closest' is defined as absolute diffe 阅读全文

posted @ 2017-05-13 12:47 炮二平五 阅读(1085) 评论(0) 推荐(0) 编辑

导航