摘要: [题目] Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -. Example:Given a = 1 and b = 2, return 3. [题目解析] 这 阅读全文
posted @ 2016-11-02 16:16 三刀 阅读(112) 评论(0) 推荐(0) 编辑
摘要: [题目] Given an array of integers, every element appears twice except for one. Find that single one. Note:Your algorithm should have a linear runtime co 阅读全文
posted @ 2016-11-02 16:03 三刀 阅读(120) 评论(0) 推荐(0) 编辑
摘要: [题目] Write a program that outputs the string representation of numbers from 1 to n. But for multiples of three it should output “Fizz” instead of the 阅读全文
posted @ 2016-11-02 15:41 三刀 阅读(261) 评论(0) 推荐(0) 编辑
摘要: [题目] Given a pattern and a string str, find if str follows the same pattern. Here follow means a full match, such that there is a bijection between a 阅读全文
posted @ 2016-11-02 15:15 三刀 阅读(454) 评论(0) 推荐(0) 编辑