Quick Overview

Implement `compress_runs(s)` and return the compressed string. Work through the function contract, boundary cases, correctness argument, and time and space complexity expected in a production-quality solution.

Compress Consecutive Characters with Run Lengths

Company: Oracle

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Onsite

Overview: Implement `compress_runs(s)` and return the compressed string. Work through the function contract, boundary cases, correctness argument, and time and space complexity expected in a production-quality solution.

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

Loading…