// you can write to stdout for debugging purposes, e.g.
// console.log('this is a debug message');
function solution(A) {
A.sort((a,b) => a-b);
for(let i = 0; i < A.length - 2; i++){
if (A[i] + A[i + 1] > A[i + 2]){
return 1;
}
}
return 0
}
# you can write to stdout for debugging purposes, e.g.
# print("this is a debug message")
def solution(A):
# write your code in Python 3.6
A.sort()
for i in range(len(A) - 2):
if A[i] + A[i + 1] > A[i + 2]:
return 1
return 0