Quick Overview

Transform text by replacing periods inside each non-whitespace token and adding the required dramatic suffix while preserving every whitespace character. Handle empty or whitespace-only input, existing punctuation, repeated spaces, tabs, newlines, million-character strings, and streaming extensions.

Add Dramatic Punctuation to Text

Company: Upstart

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Online Assessment

Overview: Transform text by replacing periods inside each non-whitespace token and adding the required dramatic suffix while preserving every whitespace character. Handle empty or whitespace-only input, existing punctuation, repeated spaces, tabs, newlines, million-character strings, and streaming extensions.

Read the full Upstart Software Engineer interview experience this question came from

Loading…