Search⌘ K
AI Features

Custom Sort String

Custom Sort String gives a preferred character order and a second string. Return any permutation that keeps ordered characters in relative order, while other characters may appear anywhere.

Statement

Given two strings, order and s, where all characters in order are ...