Ruby keep return no method error when you return

  • 0

    lets say
    head =
    tail =

    tmp =

    tail = tmp


    Even this gives no 'val' method. Most of time it return = nil as well...

Log in to reply

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