daily pastebin goal
61%
SHARE
TWEET

Untitled

a guest May 16th, 2018 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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;
RAW Paste Data
Top