Final 450

Heap

Rearrange characters in a string such that no two adjacent are same.

Part of the Final 450 DSA sheet. Solve it on one of the links below, then sign up to track your progress.

Final 450 — DSA Tracker