Sort by

recency

|

201 Discussions

|

  • + 0 comments

    You just need to return an array of n integers. The values can be anything, as long as the array length matches the input. For example, if n = 5, valid outputs could be [0,1,2,3,4] or [10,20,30,40,50]. This simple task helps beginners practice arrays and is often found in an Educational Guide for American Universities.

  • + 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.