Difference:
CSC121S2023Lab8H1
( vs. 1)
Revision 1
2023-02-28 -
cathybareiss
Line: 1 to 1
Added:
>
>
META TOPICPARENT
name="CSC121S2023Lab08"
How to report the number of good colors
The number of colors that are correct but in the wrong position is:
the sum of the number of colors shared
minus the number of colors in the same position
so if both strings had 2 reds and 3 blues and 2 colors were in the right position, the answer would be 3
View topic
|
H
istory
:
r1
|
More topic actions...
Copyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback