• + 0 comments

    my code works but it did not compile here so Can you tell me how did you enter your code and compile

    def solution(arr:List[Int]): Int ={ var index = 0 for(i<-arr ){ index+=1 } index }