Swift Runner is broken


  • 0
    C

    No matter what I enter, I get the Expected answer: Line 7: 'Solution' was not declared in this scope.

    Here is some test code that just echos back the whole range:

    class Solution {
        func selfDividingNumbers(_ left: Int, _ right: Int) -> [Int] {
            var result = [Int]()
            for target in left...right {
                result.append(target)
            }
            return result        
        }
    }
    

    Your answer: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]
    Expected answer: Line 7: 'Solution' was not declared in this scope


  • 0
    J

    I am also getting this with C#


Log in to reply
 

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