← Salesforce questions
CodingReported in a candidate post, Aug 2025

Classify texts as spam using a spam-word list

Filed under Salesforce

Given a list of texts and a list of spam words, label each text 'spam' if it contains at least two occurrences of spam words (case-sensitive), otherwise 'not_spam'. Return the labels in order.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Salesforce questions

Collected from public candidate posts and coding forums. Updated Nov 2026.