摘要:
题目要求 You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of nums2. Find all the next greater numbers for n 阅读全文
摘要:
题目要求 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 阅读全文
摘要:
题目要求 You have an array of logs. Each log is a space delimited string of words. For each log, the first word in each log is an alphanumeric identifier. 阅读全文
摘要:
题目要求 Given a non-empty array of integers, every element appears twice except for one. Find that single one. 题目分析及思路 给定一个非空整数数组,除了一个元素只出现一次外,其余元素均出现两次。 阅读全文
摘要:
题目要求 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 farth 阅读全文
摘要:
题目要求 Given an integer array with even length, where different numbers in this array represent different kinds of candies. Each number means one candy 阅读全文
摘要:
题目要求 Given a positive integer N, find and return the longest distance between two consecutive 1's in the binary representation of N. If there aren't t 阅读全文
摘要:
题目要求 Given a binary search tree and the lowest and highest boundaries as L and R, trim the tree so that all its elements lies in [L, R] (R >= L). You 阅读全文
摘要:
题目要求 You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water. Grid cells are connected horizontal 阅读全文
摘要:
题目要求 You're now a baseball game point recorder. Given a list of strings, each string can be one of the 4 following types: Each round's operation is pe 阅读全文