摘要: "486. Predict the Winner" Description Given an array of scores that are non negative integers. Player 1 picks one of the numbers from either end of th 阅读全文
posted @ 2018-07-31 23:34 吴汉卿 阅读(135) 评论(0) 推荐(0)
摘要: "464. Can I Win" Description In the "100 game," two players take turns adding, to a running total, any integer from 1..10. The player who first causes 阅读全文
posted @ 2018-07-31 23:21 吴汉卿 阅读(353) 评论(0) 推荐(0)
摘要: "292. Nim Game" Description You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take 阅读全文
posted @ 2018-07-31 17:32 吴汉卿 阅读(118) 评论(0) 推荐(0)
摘要: ubuntu 14.04 64bit 安装 请自行Google安装,并修改源。 cuda 7.5 安装 1. [cuda7.5下载][1],选择ubuntu 14.04的deb包下载 2. 安装一些可能的依赖 3. 安装cuda 注: cuda的安装,并不需要先手动安装NVIDIA驱动,安装cuda 阅读全文
posted @ 2016-04-06 13:53 吴汉卿 阅读(357) 评论(0) 推荐(0)
摘要: [维基百科][1]中的解释为 white space是一系列字符, 用于在印刷中表示 水平 或者 垂直 的空格。 [MDSN][2]中指出,空白字符共有如下6种 | 字符 | 含义 | | |: :| | ' ' | space | | '\t' | tab | | '\n' | linefeed 阅读全文
posted @ 2016-04-05 20:04 吴汉卿 阅读(203) 评论(0) 推荐(0)
摘要: 考虑二元运算符@,如果x的类型为X,而y的类型是Y,x@y将按如下方式解析:--若X是类,查询作为X的成员函数或者X的某个基类的成员函数的operator@。--在围绕x@y的环境中,查询operator@的声明。--若X在命名空间N里定义,在N里查询operator@的声明。--在Y在命名空间M里... 阅读全文
posted @ 2015-04-13 23:00 吴汉卿 阅读(337) 评论(0) 推荐(0)