title: Check Two Given Circles Touch Intersect
signature: func checkTwoGivenCirclesTouchIntersect(x1 int, y1 int, x2 int, y2 int, r1 int, r2 int) int {
test_code: package main
  
  import (
      "fmt"
      "reflect"
      "math"
      "sort"
  )
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  func validateSolution(actual int, expected int) bool {
      return reflect.DeepEqual(actual,expected)
  }
  
  func driver(x1 int, y1 int, x2 int, y2 int, r1 int, r2 int, expected int) string {
      if validateSolution(PLACEHOLDER_FN_NAME(x1, y1, x2, y2, r1, r2),expected) {
              return "PASSED"
      }
      return "FAILED"
  
  }
  
  func main() {
  
      // Use imports to avoid undefined errors
      var _ = reflect.DeepEqual
      _ = math.Abs
      _ = sort.Sort
      result := ""
      result = driver(11, 
  	36, 
  	62, 
  	64, 
  	50, 
  	4, -1)
      fmt.Printf("TEST-0...%s\n", result)
      
      result = driver(87, 
  	1, 
  	62, 
  	64, 
  	54, 
  	41, 0)
      fmt.Printf("TEST-1...%s\n", result)
      
      result = driver(51, 
  	1, 
  	47, 
  	90, 
  	14, 
  	71, -1)
      fmt.Printf("TEST-2...%s\n", result)
      
      result = driver(89, 
  	67, 
  	9, 
  	52, 
  	94, 
  	21, 0)
      fmt.Printf("TEST-3...%s\n", result)
      
      result = driver(64, 
  	10, 
  	79, 
  	45, 
  	67, 
  	78, 0)
      fmt.Printf("TEST-4...%s\n", result)
      
      result = driver(57, 
  	86, 
  	99, 
  	43, 
  	83, 
  	63, 0)
      fmt.Printf("TEST-5...%s\n", result)
      
      result = driver(65, 
  	90, 
  	42, 
  	82, 
  	77, 
  	32, 0)
      fmt.Printf("TEST-6...%s\n", result)
      
      result = driver(32, 
  	23, 
  	28, 
  	26, 
  	60, 
  	45, 0)
      fmt.Printf("TEST-7...%s\n", result)
      
      result = driver(73, 
  	61, 
  	63, 
  	77, 
  	92, 
  	76, 0)
      fmt.Printf("TEST-8...%s\n", result)
      
      result = driver(3, 
  	99, 
  	6, 
  	19, 
  	21, 
  	28, -1)
      fmt.Printf("TEST-9...%s\n", result)
      
          
  }
source_py: def check_two_given_circles_touch_intersect(x1, y1, x2, y2, r1, r2):
      distSq = (((x1 - x2) * (x1 - x2)) + ((y1 - y2) * (y1 - y2)))
      radSumSq = ((r1 + r2) * (r1 + r2))
      if (distSq == radSumSq):
          return 1
      elif (distSq > radSumSq):
          return (- 1)
      else:
          return 0
source_cpp: int check_two_given_circles_touch_intersect(int x1, int y1, int x2, int y2, int r1, int r2) {
    int distSq = ( x1 - x2 ) * ( x1 - x2 ) + ( y1 - y2 ) * ( y1 - y2 );
    int radSumSq = ( r1 + r2 ) * ( r1 + r2 );
    if ( distSq == radSumSq ) return 1;
    else if ( distSq > radSumSq ) return - 1;
    else return 0;
  }