newszine

Custom Order Sorting of String | String Problem | LeetCode 791

4 years ago Lalit Bhagtani 0
Problem Statement You have given two strings CustomSorted and Test, both strings contain only lowercase characters. CustomSorted string is sorted in some custom order and does not contain any duplicates. Sort the input string Test in the same order as CustomSorted string is sorted. For example, if X occurs before Y in CustomSorted string, then Read More