摘要: Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Example: Inpu 阅读全文
posted @ 2018-09-27 19:14 bernieloveslife 阅读(91) 评论(0) 推荐(0)
摘要: Validate if a given string can be interpreted as a decimal number. Some examples: "0" = true " 0.1 " = true "abc" = false "1 a" = false "2e10" = true 阅读全文
posted @ 2018-09-27 19:08 bernieloveslife 阅读(130) 评论(0) 推荐(0)
摘要: Implement pow(x, n), which calculates x raised to the power n (xn). Example 1: Input: 2.00000, 10 Output: 1024.00000 Example 2: Input: 2.10000, 3 Outp 阅读全文
posted @ 2018-09-27 19:07 bernieloveslife 阅读(115) 评论(0) 推荐(0)
摘要: There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity sh 阅读全文
posted @ 2018-09-27 19:07 bernieloveslife 阅读(83) 评论(0) 推荐(0)
摘要: Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb" Output: 3 Explanation: The answer 阅读全文
posted @ 2018-09-27 19:05 bernieloveslife 阅读(88) 评论(0) 推荐(0)