Python translation
Thank you for the puzzle, it was fun to solve. Another typo: "If two identical cities a listed in a row" is supposed to be "If two identical cities are listed in a row"
Any thoughts on figuring out the issue when the dataset is big? I realize that using System.out is the best way but any other faster method? TIA
Fixed.
Very minor feedback- there is a small typo in the description:
they do not know hot to calculate the time properly -> they do not know how to calculate the time properly
you don't need to use an array base here
Java translation added
Because you need to import the needed library.
why i cant use the class Arrays?
Loading collection data...
Python translation
Thank you for the puzzle, it was fun to solve. Another typo: "If two identical cities a listed in a row" is supposed to be "If two identical cities are listed in a row"
Any thoughts on figuring out the issue when the dataset is big? I realize that using System.out is the best way but any other faster method? TIA
Fixed.
Very minor feedback- there is a small typo in the description:
they do not know hot to calculate the time properly -> they do not know how to calculate the time properly
you don't need to use an array base here
Java translation added
Because you need to import the needed library.
why i cant use the class Arrays?