CtCI-6th-Edition-cpp
CtCI-6th-Edition-cpp copied to clipboard
Solve is_unique with map
A solution for this problem using map
The loop is odd here. Why not like bellow?
if (character_counts[c] == 1) return false;
You are absolutely right, my loop is purely abundant :smile: