2 ms·
This seems pretty inefficient, as it seems that line.count would be checking the whole line for how many times the letter appears. However, if you're solving i
by epicureanideal 15y ago
This seems pretty inefficient, as it seems that line.count would be checking the whole line for how many times the letter appears. However, if you're solving in Python I guess efficiency is not really top priority anyway, and they also didn't specify a language or efficiency.