The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, calcul ...
分类:
其他好文 时间:
2017-10-22 21:01:03
阅读次数:
166
很久没刷leetcode了 The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x ...
分类:
其他好文 时间:
2017-10-22 11:11:17
阅读次数:
123
The upload class will be used in the service layer. Notice it has a constructor for file attribute, which has a type of File. This will allows us to i ...
分类:
数据库 时间:
2017-10-22 11:09:33
阅读次数:
245
Given an integer n, return the number of trailing zeroes in n!. Note: Your solution should be in logarithmic time complexity. Credits:Special thanks t ...
分类:
其他好文 时间:
2017-10-22 11:00:08
阅读次数:
155
Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. According to the definition of LCA on Wikipedia ...
分类:
其他好文 时间:
2017-10-22 00:32:00
阅读次数:
143
笔记 Python入门第一天。 代码是从上往下,同等情况下从左至右一次计算。 一, Python2跟Python3的区别: Python2: 1,臃肿,源码的重复量很多。 2,语法不清晰,掺杂着c,php,Java的一些陋习。 3, print后面可以有括号也可以没括号。Python3: 几乎是重构 ...
分类:
其他好文 时间:
2017-10-22 00:26:29
阅读次数:
161
礼悟: 好好学习多思考,尊师重道存感恩。叶见寻根三二一,江河湖海同一体。 虚怀若谷良心主,愿行无悔给最苦。读书锻炼强身心,诚劝且行且珍惜。 工程目录结构 web.xml 代码 使用Get方式访问指定网页 效果 index.jsp的代码 使用Post的方式访问指定网页 效果 学习资源:itcast和i ...
分类:
编程语言 时间:
2017-10-22 00:24:38
阅读次数:
215
第二道。 原题链接:https://www.luogu.org/problem/show?pid=1297#sub 果然牵扯到浮点数题目就开始变得比较恶心人了啊。。 思路是有一步转化,先把米转换成厘米,转化成整数进行二分然后再转回来,这样好做一些。 和切木头那个题很像,也是要记录一个cnt,判断这个 ...
分类:
其他好文 时间:
2017-10-22 00:19:39
阅读次数:
197
博主最近在学习Unity,发现一个英文教程很好。这个教程通过一个个小项目讲解了Unity方方面面,包括编辑器的使用,脚本的开发,网格基础, 渲染和Shader等等,而且是由浅入深介绍的。这个教程是荷兰的独立软件开发工程师Jasper Flick写的,发表在了他自己的网站catlike coding。 ...
分类:
编程语言 时间:
2017-10-21 18:58:04
阅读次数:
529
本文翻译youtube上的up主kudvenkat的javascript tutorial播放单 源地址在此: https://www.youtube.com/watch?v=PMsVM7rjupU&list=PL6n9fhu94yhUA99nOsJkKXBqokT3MBK0b 本次视频我们讨论Ja ...
分类:
编程语言 时间:
2017-10-21 12:40:37
阅读次数:
273