Sorry if this question is repeated...but how are the problems/codes judged?


  • 0
    A

    Like the title says...

    When it comes to programming, there are many ways to write a a program that produce the same result. The simplest example would be x = x + 1 and x+=1. So how does LeetCode decide which program or code is right if the same result is produced? Is there like a certain set of rules or constraints? Thanks!


  • 0
    J

    @aiduaq Are you concerned about only leetcode code submission or in general coding practice?


Log in to reply
 

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