Missing country code
source link: https://www.techinterview.org/post/3233459746/missing-country-code/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Tech Interview
A site for technical interview questions, brain teasers, puzzles, quizzles (whatever the heck those are) and other things that make you think!
-
-
Missing Country Code
Imagine you get a data set from a client that contains addresses from 150 countries all around the world and your task is to verify them, the data is stored in 4 fields – Address Line 1, Address Line 2, City, ZIP code. What you also have available is address verification solution for each country, but the data set does not include the country code. How would you design the logic that would process the data and use the verification components in the most efficient way?
Hint: Running all of those 150 address verification components against each record is not considered efficient.
-
Proudly powered by WordPress.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK