Advertisement
Guest User

Untitled

a guest
May 16th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.23 KB | None | 0 0
  1. string output = "";
  2. for (int i = 0; i < points.length - 2; i += 2) {
  3.     output += points[i] == points[i + 2]
  4.         ? points[i + 1] > points[i + 3]
  5.             ? "1"
  6.             : "3"
  7.         ? points[i] > points[i + 2]
  8.             ? "4"
  9.             : "2";
  10. }
  11. return output;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement