Shopify Interview Question

Given this sorted string list. Write a code that will split and sort it using specific rules.

Interview Answer

Anonymous

Jun 9, 2022

1. Create frequency map of String 2. Traverse pattern and print each character same number of times as it appears in str O(m + n )