Assuming the companies that created those questions in the first place don't sue LeetCode.
What about test cases then?