Ad
  • Default User Avatar

    I had the same time out problem. Did you find a solution?

  • Default User Avatar

    Did you eliminated the server timeout error. I have been coding in javascript and I have the same error.

  • Default User Avatar

    I know that you posted this some time ago. I had the same problem with memory overflow. I refactored my code and now I dont have that problem. But now I have an exit code, because of execution timeout. Did you finally solved it?

    ++++++function whoIsNext(names, r){
    ++++++let num = 0
    ++++++while((names.length + num) < r) {
    ++++++let name = names.shift()
    ++++++names.push(name, name)
    ++++++num += 1
    ++++++}
    ++++++return names[r-num-1]
    ++++++}