{"ScriptPreparationCode":"function stray_happy(numbers) {\r\n numbers = numbers.sort((a, b) =\u003E a - b);\r\n if (numbers[0] !== numbers[1]) {\r\n return numbers[0];\r\n }\r\n else {\r\n return numbers[numbers.length - 1];\r\n }\r\n}\r\n\r\n\r\nfunction stray_heretic(numbers) {\r\n return numbers.find(i =\u003E numbers.filter(j =\u003E j === i).length === 1);\r\n}\r\n\r\n\r\nfunction stray_shaye(numbers) {\r\n return \u002Bnumbers.sort((a, b) =\u003E a - b)\r\n \t.filter((n,i,a) =\u003E (i === 0 \u0026\u0026 a[0] !==a[1]) || (i === a.length-1 \u0026\u0026 a[a.length-1] !== a[a.length-2]));\r\n}\r\n\r\nfunction stray_user(a) {\r\n return a.find(v =\u003E a[0] != a[1] ? v != a[2] : v != a[0])\r\n}\r\n\r\nfunction stray_user_2(a) {\r\n\ta.find(a[0] != a[1] ? (v, i, a) =\u003E v != a[2] : (v, i, a) =\u003E v != a[0])\r\n}\r\n\r\n\r\nfunction stray_user_3(a) {\r\n var a0 = a[0], a1 = a[1], a2 = a[2];\r\n\ta.find(a0 != a1 ? (v, i, a) =\u003E v != a2 : (v, i, a) =\u003E v != a0)\r\n}\r\n\r\nfunction stray_user_4(a) {\r\n var a0 = a[0], a1 = a[1], a2 = a[2];\r\n if (a0 != a1) a.find((v,i,a) =\u003E v != a2);\r\n else a.find((v,i,a) =\u003E v != a0);\r\n}\r\n\r\n\r\nvar numbers = [1,1,1,1,1,1,1,2,1,1,1,1,1,1,1]\r\n\r\n","TestCases":[{"Name":"stray_happy","Code":"var n = stray_happy(numbers)","IsDeferred":false},{"Name":"stray_heretic","Code":"var n = stray_heretic(numbers)","IsDeferred":false},{"Name":"stray_shaye","Code":"var n = stray_shaye(numbers)","IsDeferred":false},{"Name":"stray_user","Code":"var n = stray_user(numbers)","IsDeferred":false},{"Name":"stray_user_2","Code":"var n = stray_user_2(numbers)","IsDeferred":false},{"Name":"stray_user_3","Code":"var n = stray_user_3(numbers)","IsDeferred":false},{"Name":"stray_user_4","Code":"var n = stray_user_4(numbers)","IsDeferred":false}]}