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??
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 :)
one more question that when we use cout in code for debugging purpose on leetcode and submit the code without removing that cout still it got accepted on leetcode but on codeforces this does not work how they match the output with cout in code
Very interesting content. Loved it. Keep up the great work ššš...
Thanks, really appreciate it!
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??
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 :)
Great article! Youtube is not working though.
one more question that when we use cout in code for debugging purpose on leetcode and submit the code without removing that cout still it got accepted on leetcode but on codeforces this does not work how they match the output with cout in code