摘要:
Given an 2D board, count how many battleships are in it. The battleships are represented with 'X's, empty slots are represented with '.'s. You may ass 阅读全文
posted @ 2017-02-13 22:38
amazingzoe
阅读(148)
评论(0)
推荐(0)
摘要:
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 nums1' 阅读全文
posted @ 2017-02-13 22:07
amazingzoe
阅读(186)
评论(0)
推荐(0)
摘要:
Design and implement a TwoSum class. It should support the following operations: add and find. add - Add the number to an internal data structure.find 阅读全文
posted @ 2017-02-13 20:53
amazingzoe
阅读(145)
评论(0)
推荐(0)
摘要:
Given an integer, return its base 7 string representation. Example 1: Example 2: Note: The input will be in range of [-1e7, 1e7]. 阅读全文
posted @ 2017-02-13 20:33
amazingzoe
阅读(218)
评论(0)
推荐(0)
摘要:
Given a binary search tree (BST) with duplicates, find all the mode(s) (the most frequently occurred element) in the given BST. Assume a BST is define 阅读全文
posted @ 2017-02-13 20:18
amazingzoe
阅读(558)
评论(0)
推荐(0)
摘要:
The API: int read4(char *buf) reads 4 characters at a time from a file. The return value is the actual number of characters read. For example, it retu 阅读全文
posted @ 2017-02-13 19:14
amazingzoe
阅读(197)
评论(0)
推荐(0)
浙公网安备 33010602011771号