摘要: C code: 阅读全文
posted @ 2017-03-11 12:05 NemoWang 阅读(619) 评论(0) 推荐(0) 编辑
摘要: C code: 阅读全文
posted @ 2017-03-11 12:01 NemoWang 阅读(521) 评论(0) 推荐(0) 编辑
摘要: Reverse String 题目要求: Write a function that takes a string as input and returns the string reversed. Example: Given s = "hello", return "olleh". 题目大意: 阅读全文
posted @ 2017-03-11 11:56 NemoWang 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Nim Game 题目描述: 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 turns to rem 阅读全文
posted @ 2017-03-11 11:51 NemoWang 阅读(132) 评论(0) 推荐(0) 编辑
摘要: Add Digits 题目描述: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.For example:Given num = 38, the p 阅读全文
posted @ 2017-03-11 11:49 NemoWang 阅读(164) 评论(0) 推荐(0) 编辑