For C language, `summaryRangesGetIntervals` API should return a length.


  • 0
    F

    For C language,
    API:

    struct Interval* summaryRangesGetIntervals(SummaryRanges* obj) {
    }
    

    Should be :

    struct Interval* summaryRangesGetIntervals(SummaryRanges* obj, int *returnSize) {
    }
    

    .

    otherwise, how could the caller know the length of the returned array?


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.