title: Compute Average Two Numbers Without Overflow
signature: function computeAverageTwoNumbersWithoutOverflow(a, b) {
test_code: 
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  function convertToString(value) {
      return JSON.stringify(value, function (key, val) {
          if (val instanceof Set) {
              return Array.from(val);
          } return val;});
  }
  
  function validateSolution(actual, expected){
      return convertToString(actual)===convertToString(expected);
  }
  
  function driver(a, b, expected){
      try{
          if (validateSolution(PLACEHOLDER_FN_NAME(a, b),expected)){
              return "PASSED";
          }
          return "FAILED";
      } catch (error) {
        return error.name;
      }
      
  }
      
  function main(){
    let result = '';
    result = driver(1, 44, 22);
    console.log(`TEST-0...${result}`);
  
    result = driver(6, 61, 33);
    console.log(`TEST-1...${result}`);
  
    result = driver(75, 20, 47);
    console.log(`TEST-2...${result}`);
  
    result = driver(51, 17, 34);
    console.log(`TEST-3...${result}`);
  
    result = driver(19, 25, 22);
    console.log(`TEST-4...${result}`);
  
    result = driver(82, 98, 90);
    console.log(`TEST-5...${result}`);
  
    result = driver(72, 21, 46);
    console.log(`TEST-6...${result}`);
  
    result = driver(48, 41, 44);
    console.log(`TEST-7...${result}`);
  
    result = driver(12, 17, 14);
    console.log(`TEST-8...${result}`);
  
    result = driver(41, 80, 60);
    console.log(`TEST-9...${result}`);
  
    process.exit(0);
  };
  
  if (require.main === module) {
    main();
  }
source_py: def compute_average_two_numbers_without_overflow(a, b):
      return floor(((a + b) / 2))
source_cpp: int compute_average_two_numbers_without_overflow(int a, int b) {
    return ( a + b ) / 2;
  }