10 2016 档案

摘要:Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest l 阅读全文
posted @ 2016-10-30 22:55 __Meng 阅读(172) 评论(0) 推荐(0) 编辑
摘要: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. java: 阅读全文
posted @ 2016-10-29 22:58 __Meng 阅读(118) 评论(0) 推荐(0) 编辑
摘要:Given an array of integers, every element appears twice except for one. Find that single one. Bit Manipulation: C++: java(1ms): 阅读全文
posted @ 2016-10-27 23:35 __Meng 阅读(112) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2016-10-26 21:12 __Meng 阅读(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 numbe 阅读全文
posted @ 2016-10-25 22:27 __Meng 阅读(226) 评论(0) 推荐(0) 编辑
摘要:Write a function that takes a string as input and returns the string reversed. Example:Given s = "hello", return "olleh". Java(3ms): C++(9ms): C++(9ms 阅读全文
posted @ 2016-10-23 20:28 __Meng 阅读(170) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示