title: Count Obtuse Angles Circle K Equidistant Points 2 Given Points
signature: def countObtuseAnglesCircleKEquidistantPoints2GivenPoints(a: Int, b: Int, k: Int) = {
test_code: import scala.collection.mutable.HashMap
  import scala.collection.immutable.HashSet
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  
  // TESTING CODE 
  // ============================================
  def validateSolution(actual: Int , expected: Int): Boolean = {
      actual.toString == expected.toString
  }
  
  def driver(a: Int, b: Int, k: Int, expected: Int): String = {
      try {
          if (validateSolution(PLACEHOLDER_FN_NAME(a, b, k),expected)) {
              "PASSED"
          } else{
              "FAILED"
          }
      }catch{
          case e: Exception => {e.getClass.getName}
      }
  
  }
  object QuestionEvaluator extends App {
  
      println(s"TEST-0...${driver(
        83, 98, 86, 
        14    
      )}")   
  
  
      println(s"TEST-1...${driver(
        3, 39, 87, 
        35    
      )}")   
  
  
      println(s"TEST-2...${driver(
        11, 96, 30, 
        -56    
      )}")   
  
  
      println(s"TEST-3...${driver(
        50, 67, 48, 
        16    
      )}")   
  
  
      println(s"TEST-4...${driver(
        40, 16, 32, 
        -25    
      )}")   
  
  
      println(s"TEST-5...${driver(
        62, 86, 76, 
        23    
      )}")   
  
  
      println(s"TEST-6...${driver(
        40, 78, 71, 
        32    
      )}")   
  
  
      println(s"TEST-7...${driver(
        66, 11, 74, 
        -56    
      )}")   
  
  
      println(s"TEST-8...${driver(
        6, 9, 19, 
        2    
      )}")   
  
  
      println(s"TEST-9...${driver(
        25, 5, 5, 
        -21    
      )}")   
  
  }
  
source_py: def count_obtuse_angles_circle_k_equidistant_points_2_given_points(a, b, k):
      c1 = ((b - a) - 1)
      c2 = ((k - b) + (a - 1))
      if (c1 == c2):
          return 0
      return min(c1, c2)
source_cpp: int count_obtuse_angles_circle_k_equidistant_points_2_given_points(int a, int b, int k) {
    int c1 = ( b - a ) - 1;
    int c2 = ( k - b ) + ( a - 1 );
    if ( c1 == c2 ) return 0;
    return min ( c1, c2 );
  }