79551294

Date: 2025-04-02 18:17:54
Score: 1
Natty:
Report link

I don't know how about efficiency, but that's definitely the clearest way:

int _signsCount(String input, String sign) => sign.allMatches(input).length;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Maciej Szakacz