Skip to content

Coding Challenge - Sorting Royal Names  #30

@NicolaBernini

Description

@NicolaBernini

Overview

Given a list of Royal Names in the form Name RomanNumber like Louis III sort them according to the following rules

  • first sort lexigraphically considering the name only
  • in case of same name, sort numerically in ascending order according to roman number value

Example

Louis IX
Louis VIII
Philippe I
Philip II

becomes

Louis VIII
Louis IX
Philip II
Philippe I

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions