Sort by

recency

|

328 Discussions

|

  • + 0 comments

    Swift Solution:

    func handshake(n: Int) -> Int {
        return n*(n-1)/2
    }
    
  • + 0 comments

    guys how solve

  • + 0 comments

    Simple Code: def handshake(n): return sum(range(n))

  • + 0 comments

    Simple Code: def handshake(n): return sum(range(n))

  • + 0 comments

    Is recursion not accepted in this challenge? Submitted a solution in Python using recursion, worked in using customed input, but in 9 out of 10 submission tests encountered runtime error.