Sort by

recency

|

200 Discussions

|

  • + 0 comments

    Elixir is broken for this with my solutions. I have tried in several different ways and I still get 2 failing tests when submitting. The rest of the tests are ok and the failed ones are expecting the given number N as the result and not the list with N elements for some reason.

  • + 0 comments

    Scala has been broken To compelte this in scala you have to add some imports, remove the print statement and change the return type to apply a valid string rather than a list for this to complete.

  • + 0 comments

    scala

    object Solution extends App {
        import scala.io.StdIn.readInt
        def f(num:Int) : List[Int] = {
            val list = List.range(0, num)
            list
        }
    
        println(f(readInt))
    }
    
  • + 0 comments

    sounds Intresting, i am wondering can we use this concept in my site on my wordpress site? for either better structure or engagement.

  • + 0 comments

    Scala: val lst: List[Int] = (1 to num).toList