title: Count Obtuse Angles Circle K Equidistant Points 2 Given Points
signature: function count_obtuse_angles_circle_k_equidistant_points_2_given_points(a, b, k)
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 );
  }
question_info.entry_fn_name: count_obtuse_angles_circle_k_equidistant_points_2_given_points
question_info.entry_cls_name: Solution
question_info.test_case_ids: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
question_info.test_code: 
  
  -- SOLUTION CODE
  -- ============================================
  PLACEHOLDER_CODE_BODY
  
  -- TESTING CODE 
  -- ============================================
  function isCorrect(actual, expected)
      if type(expected) ~= type(actual) then
          return false
      end
      
      if type(expected) == 'table' then
          for k,v_expected in pairs(expected) do
              
              if actual[k] == nil then
                  return false
              end
              local v_actual = actual[k]
              if not isCorrect(v_actual, v_expected) then
                  return false
              end
              actual[k]=nil
          end
      
          if next(actual) then 
              return false
          end
          return true
      else
          return actual == expected
      end
  end
  
  function validateSolution(actual, expected)
      return isCorrect(actual,expected)
  end
  
  function driver(a, b, k, expected)
      local exec_result;
      local status, error_msg = pcall(function () 
          exec_result=PLACEHOLDER_FN_NAME(a, b, k) 
      end)
      if status then
          if validateSolution(exec_result,expected) then
              return "PASSED"
          end
          return "FAILED"
      else
          return string.format("ERROR=%s",string.gsub(error_msg,".*:[%d]+: ",""))
      end
  end
      
  function main()
      result = driver(83, 98, 86, 14)
      print(string.format("TEST-0...%s",result))
  
      result = driver(3, 39, 87, 35)
      print(string.format("TEST-1...%s",result))
  
      result = driver(11, 96, 30, -56)
      print(string.format("TEST-2...%s",result))
  
      result = driver(50, 67, 48, 16)
      print(string.format("TEST-3...%s",result))
  
      result = driver(40, 16, 32, -25)
      print(string.format("TEST-4...%s",result))
  
      result = driver(62, 86, 76, 23)
      print(string.format("TEST-5...%s",result))
  
      result = driver(40, 78, 71, 32)
      print(string.format("TEST-6...%s",result))
  
      result = driver(66, 11, 74, -56)
      print(string.format("TEST-7...%s",result))
  
      result = driver(6, 9, 19, 2)
      print(string.format("TEST-8...%s",result))
  
      result = driver(25, 5, 5, -21)
      print(string.format("TEST-9...%s",result))
  
  end
  
  main()
question_info.test_list: [{"idx": 0, "outputs": 14, "inputs": {"a": 83, "b": 98, "k": 86}}, {"idx": 1, "outputs": 35, "inputs": {"a": 3, "b": 39, "k": 87}}, {"idx": 2, "outputs": -56, "inputs": {"a": 11, "b": 96, "k": 30}}, {"idx": 3, "outputs": 16, "inputs": {"a": 50, "b": 67, "k": 48}}, {"idx": 4, "outputs": -25, "inputs": {"a": 40, "b": 16, "k": 32}}, {"idx": 5, "outputs": 23, "inputs": {"a": 62, "b": 86, "k": 76}}, {"idx": 6, "outputs": 32, "inputs": {"a": 40, "b": 78, "k": 71}}, {"idx": 7, "outputs": -56, "inputs": {"a": 66, "b": 11, "k": 74}}, {"idx": 8, "outputs": 2, "inputs": {"a": 6, "b": 9, "k": 19}}, {"idx": 9, "outputs": -21, "inputs": {"a": 25, "b": 5, "k": 5}}]