We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
The word "lexicographic" in this problem statement is very misleading. The standard definition of lexicographic is that the numbers are compared to each other in an alphabetical sense, as if the numbers were strings ([https://en.wikipedia.org/wiki/Lexicographical_order]). So a lexicographic comparison is the same as a numerical comparison if either number is positive. However if both numbers are negative, the comparison reverses, since the string '-1' is less than the string '-5'.
The answer expected by the grader here is simply the minimum possible numerical value, for each dimension, that optimizes the total distance traveled.
Speaking of travelling, I can tell you that I'm planning a trip to Hawaii, and I hope that I won't even think of work. Not so long ago, I discovered a great camera on https://snorkelstore.net/9-underwater-cameras-for-snorkeling-that-are-powerful-and-affordable-and-not-gopros/, so the only thing I'll think about will be the underwater wonders.
The word "lexicographic" in this problem statement is very misleading. The standard definition of lexicographic is that the numbers are compared to each other in an alphabetical sense, as if the numbers were strings ([https://en.wikipedia.org/wiki/Lexicographical_order]). So a lexicographic comparison is the same as a numerical comparison if either number is positive. However if both numbers are negative, the comparison reverses, since the string '-1' is less than the string '-5'.
The answer expected by the grader here is simply the minimum possible numerical value, for each dimension, that optimizes the total distance traveled.
can anyone help me plz how we start this problem
Can anybody tell if each dimension is different and indepedent. Where does the lexicographic part arises ? There should be only one answer !