title: Possible Form Triangle Array Values
signature: possible_form_triangle_array_values <- function(arr, n) {
test_code: 
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  validate_solution <- function(actual, expected) {
      toString(actual)==toString(expected)
  }
  
  driver <- function(arr, n, expected){
      if (validate_solution(PLACEHOLDER_FN_NAME(arr, n), expected)){
          "PASSED"
      } else{
          "FAILED"
      }
  }
  
  main <- function() {
      cat(sprintf("TEST-0...%s\n",driver(
          list(2L, 6L, 8L, 10L, 14L, 15L, 16L, 19L, 21L, 26L, 26L, 26L, 28L, 29L, 30L, 33L, 33L, 35L, 36L, 36L, 41L, 44L, 45L, 45L, 45L, 49L, 51L, 54L, 57L, 59L, 61L, 64L, 68L, 70L, 70L, 72L, 73L, 74L, 76L, 78L, 87L, 89L, 89L, 91L, 92L, 93L, 94L, 95L, 97L), 25L, 
          TRUE
      )))
  
      cat(sprintf("TEST-1...%s\n",driver(
          list(-96L, -94L, -90L, -86L, -78L, -78L, -74L, -72L, -64L, -64L, -58L, -56L, -50L, -46L, -44L, -36L, -26L, -14L, -12L, -10L, -4L, 4L, 10L, 16L, 18L, 22L, 30L, 32L, 38L, 46L, 46L, 50L, 54L, 56L, 72L, 74L, 82L, 86L, 86L, 88L, 90L, 96L), 23L, 
          FALSE
      )))
  
      cat(sprintf("TEST-2...%s\n",driver(
          list(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L), 10L, 
          FALSE
      )))
  
      cat(sprintf("TEST-3...%s\n",driver(
          list(24L, 24L, 41L, 80L, 90L, 95L), 4L, 
          TRUE
      )))
  
      cat(sprintf("TEST-4...%s\n",driver(
          list(-90L, -88L, -84L, -82L, -82L, -80L, -70L, -66L, -62L, -60L, -60L, -48L, -46L, -44L, -42L, -20L, -16L, -4L, 18L, 26L, 28L, 32L, 36L, 46L, 60L, 62L, 68L, 72L, 78L, 98L), 21L, 
          TRUE
      )))
  
      cat(sprintf("TEST-5...%s\n",driver(
          list(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L), 25L, 
          TRUE
      )))
  
      cat(sprintf("TEST-6...%s\n",driver(
          list(3L, 9L, 14L, 16L, 16L, 26L, 30L, 31L, 32L, 37L, 42L, 42L, 43L, 49L, 51L, 56L, 64L, 69L, 76L, 77L, 77L, 79L, 85L, 88L, 89L, 91L, 94L, 95L), 19L, 
          TRUE
      )))
  
      cat(sprintf("TEST-7...%s\n",driver(
          list(-90L, -84L, -74L, -68L, -66L, -60L, -60L, -60L, -58L, -52L, -50L, -42L, -38L, -34L, -30L, 6L, 30L, 42L, 60L, 80L, 94L, 98L), 11L, 
          FALSE
      )))
  
      cat(sprintf("TEST-8...%s\n",driver(
          list(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L), 18L, 
          TRUE
      )))
  
      cat(sprintf("TEST-9...%s\n",driver(
          list(1L, 3L, 5L, 8L, 13L, 15L, 16L, 22L, 24L, 26L, 30L, 31L, 31L, 33L, 34L, 39L, 39L, 40L, 46L, 49L, 50L, 51L, 52L, 59L, 66L, 69L, 77L, 80L, 88L, 90L), 23L, 
          TRUE
      )))
  
  }
  
  main()
source_py: def possible_form_triangle_array_values(arr, N):
      if (N < 3):
          return False
      arr.sort()
      for i in range((N - 2)):
          if ((arr[i] + arr[(i + 1)]) > arr[(i + 2)]):
              return True
source_cpp: bool possible_form_triangle_array_values(vector<int> arr, int N) {
    if ( N < 3 ) return false;
    sort(arr.begin(), arr.end());
    for ( int i = 0;
    i < N - 2;
    i ++ ) if ( arr [ i ] + arr [ i + 1 ] > arr [ i + 2 ] ) return true;
  }