摘要: Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. 最大连续子段和,经典动态规 阅读全文
posted @ 2020-07-08 19:37 whatyouthink 阅读(95) 评论(0) 推荐(0) 编辑
摘要: In a list of songs, the i-th song has a duration of time[i] seconds. Return the number of pairs of songs for which their total duration in seconds is 阅读全文
posted @ 2020-07-08 13:53 whatyouthink 阅读(100) 评论(0) 推荐(0) 编辑