Pregunta de entrevista de Verisk

Create a sort function based on a custom alphabet.

Respuesta de la entrevista

Anónimo

21 de jul de 2023

Regular alphabetical sorts are just numeric sorts based on the numeric values of the letters (e.g. a = 1, d =4), simply reassign the letters' numbers based on the order of the custom alphabet.