上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 76 下一页
摘要: The set S originally contains numbers from 1 to n. But unfortunately, due to the data error, one of the numbers in the set got duplicated to another n 阅读全文
posted @ 2018-11-30 15:16 bernieloveslife 阅读(89) 评论(0) 推荐(0)
摘要: Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the nearest l 阅读全文
posted @ 2018-11-30 15:16 bernieloveslife 阅读(71) 评论(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 阅读(332) 评论(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 阅读(99) 评论(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 阅读(97) 评论(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 阅读(176) 评论(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 阅读(208) 评论(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 阅读(110) 评论(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 阅读(116) 评论(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 阅读(71) 评论(0) 推荐(0)
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 76 下一页