摘要: 参考博文:https://blog.csdn.net/zhaohaibo_/article/details/79544497 问题描述 小明开了一家糖果店。他别出心裁:把水果糖包成4颗一包和7颗一包的两种。糖果不能拆包卖。 小朋友来买糖的时候,他就用这两种包装来组合。当然有些糖果数目是无法组合出来的 阅读全文
posted @ 2019-02-10 16:59 DXYE 阅读(639) 评论(0) 推荐(0)
摘要: Given an array of n positive integers and a positive integer s, find the minimal length of a contiguoussubarray of which the sum ≥ s. If there isn't o 阅读全文
posted @ 2019-02-10 11:53 DXYE 阅读(143) 评论(0) 推荐(0)