Swift solution got Time Limit Exceeded while same C solution works

  • 1

    I'm using bitwise approach and C solution passes all tests while Swift solution got TLE (while they both uses almost identical approach), probably you should give Swift more time for executing this problem.

  • 0

    yes. I got TLE with swift code as well.

  • 0

    seeing this as well with fairly simple swift solution

  • 0

    This was just fixed. Try submitting again and your swift solution should get Accepted now.

Log in to reply

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