R
R
Rasul Kakushev2018-08-17 12:39:53
Algorithms
Rasul Kakushev, 2018-08-17 12:39:53

What is the complexity of the calculation algorithm?

Given a list of cities. Their names and regions are known, but the coordinates are unknown. The algorithm goes through the list of cities and each time accesses the server, getting the coordinates or getting an error. If coordinates are received, they are assigned to the city and it is removed from the list. When the algorithm reaches the end, if there are elements left in the list, then the function for the remaining list is called recursively. I suspect that this is O(n*log n)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question