I solved it, thank you anyways.
The solution for some who wants help is
You have to do a matrix with the distance and then seek for the low cost, like this:
restaurants 1 2 3 4 5
1 0 1 2 3 4
2 1 0 1 2 3
3 2 1 0 1 2
4 3 2 1 0 1
5 4 3 2 1 0
:lol:
Search found 2 matches
- Tue Feb 25, 2003 4:20 am
- Forum: Volume 6 (600-699)
- Topic: 662 - Fast Food
- Replies: 22
- Views: 13083
- Mon Feb 17, 2003 8:53 pm
- Forum: Volume 6 (600-699)
- Topic: 662 - Fast Food
- Replies: 22
- Views: 13083
662 - Fast Food
I tried it spliting the arrange in 2, looking for the medium (n/2), for example:
5
6-
12
19
20-
27
But it not always works, and i don
5
6-
12
19
20-
27
But it not always works, and i don