摘要:
Question: 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 阅读全文
摘要:
Question: Given a non negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the proces 阅读全文
摘要:
Question: 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 阅读全文
摘要:
Question: Write a function that takes a string as input and returns the string reversed. Example: Given s = "hello", return "olleh". Code: Here is Jav 阅读全文
摘要:
Question: 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 wou 阅读全文