title: Compute Average Two Numbers Without Overflow
signature: class Solution {
  
      public Integer computeAverageTwoNumbersWithoutOverflow(Integer a, Integer b) {
test_code: import static java.util.Map.entry;  
  import java.util.*;
  import java.lang.*;
  // TESTING CODE 
  // ============================================
  class QuestionEvaluator {
      public static String validateSolution(Integer a, Integer b, Integer expected){
          try{
              Driver driver = new Driver();
              if (driver.run(a, b,expected)){
                  return "PASSED";
              }
              return "FAILED";
              
          } catch (Exception exception_obj){
              return exception_obj.getClass().getSimpleName();
          }
  
      }
      public static void main(String[] args) {
          String result;
          result = validateSolution(1, 44, 22);
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution(6, 61, 33);
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution(75, 20, 47);
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution(51, 17, 34);
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
          result = validateSolution(19, 25, 22);
          System.out.println(String.format("%s%s","TEST-4...",result));    
      
          result = validateSolution(82, 98, 90);
          System.out.println(String.format("%s%s","TEST-5...",result));    
      
          result = validateSolution(72, 21, 46);
          System.out.println(String.format("%s%s","TEST-6...",result));    
      
          result = validateSolution(48, 41, 44);
          System.out.println(String.format("%s%s","TEST-7...",result));    
      
          result = validateSolution(12, 17, 14);
          System.out.println(String.format("%s%s","TEST-8...",result));    
      
          result = validateSolution(41, 80, 60);
          System.out.println(String.format("%s%s","TEST-9...",result));    
      
      }
  }
  
  class Driver{
      public boolean run(Integer a, Integer b, Integer expected){
  
          PLACEHOLDER_CLS_NAME sol = new PLACEHOLDER_CLS_NAME();
          return validateSolution(sol.PLACEHOLDER_FN_NAME(a, b),expected);
      }
      
      public boolean validateSolution(Integer actual, Integer expected){
          return actual.equals(expected);
      }
  }
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
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;
  }