Reorganize String at Roblox
Medium56.8% acceptance
This problem has 100.0% frequency at Roblox.
Problem Description
Given a string `s`, rearrange the characters of `s` so that any two adjacent characters are not the same. Return _any possible rearrangement of_ `s` _or return_ `""` _if not possible_.
Read full problem and hintsTopics
Also asked at 23 companies
More Roblox Questions
Task SchedulerMediumText JustificationHardMagnetic Force Between Two BallsMediumSubdomain Visit CountMediumCount Number of Nice SubarraysMedium
View all Roblox questions