摘要: Given an integer (signed 32 bits), write a function to check whether it is a power of 4. Example 1: Example 2: Input: 5 Output: false Example 2: Follo 阅读全文
posted @ 2016-04-18 11:31 Grandyang 阅读(14853) 评论(5) 推荐(0)
摘要: 我们在使用Maya软件的时候,有时候需要把语言在中英文之间切换,目前我感觉在不用插件的情况下,下面两种方法可以比较容易的做到: 方法一: 右键我的电脑属性,高级系统设置里面找到环境变量面板,然后新建一个环境变量,名字为 MAYA_UI_LANGUAGE,变量值设为en_US就是英文,设为zh_CN就 阅读全文
posted @ 2016-04-18 06:27 Grandyang 阅读(11382) 评论(0) 推荐(0)
摘要: 17.1 Write a function to swap a number in place (that is, without temporary variables). 这道题让我们交换两个数,但是不能用额外空间,那么我们可以先做差值,存入a中,然后再加上b,存入b中,那么此时的b即为原来的a 阅读全文
posted @ 2016-04-18 00:39 Grandyang 阅读(833) 评论(0) 推荐(0)
Fork me on GitHub