-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
1, need to include <iterator> to use ostream_iterator
2, the test/explanation example provided in main() is problematic, since the
integer range is 0-6, then F should be of size 7; Furthermore, the problem does
not assume |A|=|B|=m=n=|S|, so it is better to use another parameter to let the
function know "N-1";
3, from my personal viewpoint, the whole explanation is kind of confusing.
Without working on an example, I do not quite understand what the problem wants
and what the explanation means...I think, it is better to use input/output to
clarify. For example, the inputs are simply S, A and B; the output should be an
array F such that |F|=|S| and F[i] should be the smallest number that is
equivalent to S[i]. You can also define this as the so-called "weakest"
equivalence.
Original issue reported on code.google.com by [email protected] on 9 Apr 2013 at 6:05