Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 1.15 KB

CODE_CHALLENGE.md

File metadata and controls

30 lines (20 loc) · 1.15 KB

CODE CHALLENGE

We kindly ask you to solve the following code challenge as part of our selection process.

Addressline

An address provider returns addresses only with concatenated street names and numbers. Our own system on the other hand has separate fields for street name and street number.

Input: string of address

Output: string of street and string of street-number

  1. Write a simple program that does the task for the most simple cases, e.g.

    1. "Winterallee 3" -> {"Winterallee", "3"}
    2. "Musterstrasse 45" -> { "Musterstrasse", "45"}
    3. "Blaufeldweg 123B" -> {"Blaufeldweg", "123B"}
  2. Consider more complicated cases

    1. "Am Bächle 23" -> {"Am Bächle", "23"}
    2. "Auf der Vogelwiese 23 b" -> {"Auf der Vogelwiese", "23 b"}
  3. BONUS: Consider other countries (complex cases)

    1. "4, rue de la revolution" -> {"rue de la revolution", "4"}
    2. "200 Broadway Av" -> {"Broadway Av", "200"}
    3. "Calle Aduana, 29" -> {"Calle Aduana", "29"}
    4. "Calle 39 No 1540" -> {"Calle 39", "No 1540"}

Your Task:

Write a running application in the programming language of your choice including test cases.