Rather than solely fighting off spam with CAPTCHAs and spam comment checkers - is it a good idea to check each request against a DNSBL and block the user if they are using a bad IP?
I am trying to find a frequency of each symbol in any given text using an algor开发者_开发知识库ithm of O(n) complexity. My algorithm looks like: