摘要:
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. 翻译 给两个数 a 和 b 阅读全文
摘要:
Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and r 阅读全文
摘要:
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 ston 阅读全文
摘要:
Write a function that takes a string as input and returns the string reversed. 翻译:写一个函数,输入一个字符串,返回反转的字符串。 分析: 大水题,转为字符数组,然后直接用系统内置函数反转后再变为字符串,顺利AC。 没想 阅读全文
摘要:
Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the elements of nums except 阅读全文