Swift solution got Time Limit Exceeded while same C solution works


  • 1
    N

    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
    P

    yes. I got TLE with swift code as well.


  • 0
    B

    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.