FBI Universal Control Numbers

From programming_contest
Revision as of 00:33, 4 November 2017 by imported>Kmk21 (Created page with "This problem tells you exactly what to do. Do it. There is nothing hard about this problem. As always, note it is easier to deal with char arrays than with strings directly....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This problem tells you exactly what to do. Do it. There is nothing hard about this problem.

As always, note it is easier to deal with char arrays than with strings directly.

One implementation trick might be to store the "confusing" characters in a map. Then if the map contains that character, you know to flip it. There are several other trivial ways of doing this....a switch() statement works fine.