摘要: [题目] 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 remove 1 to 3 阅读全文
posted @ 2016-08-13 11:52 三刀 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Write a function that takes a string as input and returns the string reversed. Example:Given s = "hello", return "olleh". [题目解析] 这是个非常常见的题目,在面试中命中率极高, 阅读全文
posted @ 2016-08-13 00:05 三刀 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would hav 阅读全文
posted @ 2016-08-02 19:23 三刀 阅读(539) 评论(0) 推荐(0) 编辑