How does leetcode rate the difficulty of a problem?

I found leetcode's difficult rating system is quite confusing.

The most obvious example is #938. This problem is rated as medium, but apparently it is easier than most easy problems.

Comments (3)