You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should be more tolerant to outputs where there can be an extra space, a carriage return etc.
Alternatively, best way to do this is by serializing the return value and then compare these serialized objects instead of strings. This has a lot of benefits:
Data structures can be returned as a result of procedure calls, instead of providing a specific output format for each problem.
Sometimes people interpret non printable characters in a wrong way (different from intended). This solves that problem so that users never get a penalty just because they counted one space less or more.
The text was updated successfully, but these errors were encountered:
Right now, comparison is as simple as :
It should be more tolerant to outputs where there can be an extra space, a carriage return etc.
Alternatively, best way to do this is by serializing the return value and then compare these serialized objects instead of strings. This has a lot of benefits:
The text was updated successfully, but these errors were encountered: