Maximize a Digit Subsequence with Even Counts of Ones and Twos

Read the full interview experience this question came from →

Quick Overview

Delete digits while preserving order to maximize a number whose counts of both ones and twos are even, with linear-time handling of long strings.

Maximize a Digit Subsequence with Even Counts of Ones and Twos

Company: DRW

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: hard

Interview Round: HR Screen

Overview: Delete digits while preserving order to maximize a number whose counts of both ones and twos are even, with linear-time handling of long strings.

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

DRW logo
DRW
Aug 28, 2026
hardSoftware EngineerHR ScreenCoding & Algorithms
19
0
Practice
Loading...