2 Comments
User's avatar
⭠ Return to thread
lakshya nawandhar's avatar

But how leetcode match the output of genterated file with output file testcase i mean they are using string pattern matching algo but how for the probelm statement which is saying you can return the output in any order??

Expand full comment
SWE's avatar

In "return the output in any order" situation, the result can be verified either by sorting data or using a hashtable. That's actually one of leetcode problems itself :)

Expand full comment