How does Leetcode implement scoring of solution class?

I'm very curious to know how Leetcode scores submissions. Is there documentation on this anywhere?

Maybe the scoring script looks like this:

  1. Execute submitted code (including code above solution class).
  2. Create an instance of the solution class.
  3. Pass a series of inputs to the required method of the solution class.
Comments (0)