Skip to content

Azsael/GX.NameSorter

Repository files navigation

GX.NameSorter

Build Status

Implemented as per spec.pdf

To Run Console App

dotnet restore dotnet build dotnet run --project GX.NameSorter.Runner ./GX.NameSorter.Runner/unsorted-names-list.txt

Or run it from cmd line from bin directory :)

To Test

dotnet restore dotnet build dotnet test

Assumptions

  • No file format / contents validation required (txt file expected with no empty lines)
  • File size expected to be within bounds of memory of the machine it run on. (no petabyte files here!)
  • Person may have 1-3 given names but last name is not mandatory.
  • If between 2-4 are on a given line, we assume last one will be the name.
  • If more than 4 names in a line, assume other names are part of a multi last name.
  • Names are expected to be separated by space only.
  • Ordering is done by Ordinial Ignore Case string compare.
  • No Logging / No Error handling around file IO expected.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages