Back to problems

CSV Company Record Validation and Field Word Overlap

Algorithm · Stripe · Medium

You are handed a CSV file in which every row describes a company through several related fields. Build a validator that scans these rows and flags each one that breaks any of the validation rules. Four kinds of checks must be applied to every record: Required fields: certain designated fields must be present and non-empty. Field length: certain designated fields must meet their length requirements. Forbidden words: certain designated fields must not include any word from a…

Loading the rest of the question…