剑指 Offer 57 - II. 和为s的连续正数序列
剑指 Offer 57 - II. 和为s的连续正数序列示例1:输入:target = 9输出:[[2,3,4],[4,5]]示例2:输入:target = 15输出:[[1,2,3,4,5],[4,5,6],[7,8]]class Solution { public int[][] findContinuousSequence(int target) { //https://leetcode-cn.com/problems/he-wei-sde-lian-xu-zhe
原创
2021-03-27 15:22:24 ·
115 阅读 ·
0 评论