2 Comments
⭠ Return to thread

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

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