For the n dimensional case it would be better to say that x and y lie on opposite vertices of the n-hypercuboid such that each edge is parallel to a coordinate axis.
nice trick :)
232 Solvers
289 Solvers
367 Solvers
Implement a bubble sort technique and output the number of swaps required
153 Solvers
154 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!