Community Problem

Reorganize String

Difficulty: Medium

Rearrange a string so no two adjacent characters are equal, or report that no rearrangement exists.

Reorganize String

Rearrange a string so no two adjacent characters are equal, or report that no rearrangement exists.

MEDIUM
$6.99
heap
priority-queue
greedy
strings
oliviafoster

By @oliviafoster

March 27, 2026

·

Updated May 20, 2026

385 views

9

4.3 (9)

Problem statement is locked. Purchase this item to view the full content.

Solution

Starter code, test cases, and solutions are locked.

Purchase this item to access the full workspace.

All Problems