Skip to content

0209.长度最小的子数组 有个小bug #2252

@flylone

Description

@flylone

image

int[] arr = {12, 13, 11, 12, 14, 13};
s只要小于数组的最小值,得到的结果始终为1
所以这里应该在sum==s时才执行

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions