• + 0 comments
    func countApplesAndOranges(s: Int, t: Int, a: Int, b: Int, apples: [Int], oranges: [Int]) -> Void {
        // Write your code here
        print(apples.filter { s...t ~= ($0 + a)}.count)
        print(oranges.filter { s...t ~= ($0 + b)}.count)    
    }