Custom Sort String
Medium
Sorting & Searching (Misc)
Given an order string with unique letters and a string s, permute s so that its letters appear in the order defined by order. Letters of s that are not in order go at the end in their original relative order.
Constraints
1 <= len(order), len(s) <= 200
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.