摘要:
Given a C++ program, remove comments from it. The program source is an array where source[i] is the i th line of the source code. This represents the 阅读全文
posted @ 2018-11-30 15:16
bernieloveslife
阅读(125)
评论(0)
推荐(0)
摘要:
Given an integer n, generate all structurally unique BST's (binary search trees) that store values 1 ... n. Example: Input: 3 Output: [ [1,null,3,2], 阅读全文
posted @ 2018-11-30 15:16
bernieloveslife
阅读(121)
评论(0)
推荐(0)
摘要:
We have an array A of non negative integers. For every (contiguous) subarray B = [A[i], A[i+1], ..., A[j]] (with i 阅读全文
posted @ 2018-11-30 15:15
bernieloveslife
阅读(331)
评论(0)
推荐(0)
摘要:
Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. For example, two is written as II in Roman numeral, just two one's 阅读全文
posted @ 2018-11-30 15:15
bernieloveslife
阅读(98)
评论(0)
推荐(0)
摘要:
Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C 100 D 500 M 1000 For example, two 阅读全文
posted @ 2018-11-30 15:15
bernieloveslife
阅读(95)
评论(0)
推荐(0)
摘要:
Given a string containing digits from 2 9 inclusive, return all possible letter combinations that the number could represent. A mapping of digit to le 阅读全文
posted @ 2018-11-30 15:15
bernieloveslife
阅读(174)
评论(0)
推荐(0)
摘要:
Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string "". Exampl 阅读全文
posted @ 2018-11-30 15:15
bernieloveslife
阅读(69)
评论(0)
推荐(0)
摘要:
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: 1. 阅读全文
posted @ 2018-11-30 15:15
bernieloveslife
阅读(107)
评论(0)
推荐(0)
摘要:
Implement strStr(). Return the index of the first occurrence of needle in haystack, or 1 if needle is not part of haystack. Example 1: Input: haystack 阅读全文
posted @ 2018-11-30 15:15
bernieloveslife
阅读(113)
评论(0)
推荐(0)
摘要:
Alice and Bob have candy bars of different sizes: A[i] is the size of the i th bar of candy that Alice has, and B[j] is the size of the j th bar of ca 阅读全文
posted @ 2018-11-30 15:15
bernieloveslife
阅读(205)
评论(0)
推荐(0)

浙公网安备 33010602011771号