InterviewDigestInterviewDigest

OA Practice Workspace

Technical2026-08-16

Count the number of words in a sentence containing special symbols like ',', '-', or numbers.

AI-Expanded — inferred from the question title, not from the original candidate report

Given a string containing alphanumeric characters, spaces, and special symbols such as commas or hyphens, write a function that returns the total count of distinct words. Define a word as a contiguous sequence of alphabetic characters, ensuring that numbers and punctuation marks are excluded from the count and do not split a single word into multiple parts.

Context & Summary

Detailed discussion about projects, including technologies used (Node.js, Express.js, Bootstrap, Tailwind CSS, MongoDB Atlas). SQL query and coding problem on word counting in a sentence with special symbols.

💻 Coding practice works best on desktop.
Code editors are too cramped on mobile screens.