โ† Wells Fargo questions
CodingMedium

Josephus Problem and String Rearrangement

Filed under Wells Fargo

Solve two problems: 1) The Josephus problem (survivor in a circle of N people removing every Kth person) and 2) Rearrange a string such that identical characters are at least distance K apart.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Wells Fargo questions

Collected from public candidate posts and coding forums. Updated Nov 2026.