title: Smallest Of Three Integers Without Comparison Operators
signature: class Solution {
  
      public Integer smallestOfThreeIntegersWithoutComparisonOperators(Integer x, Integer y, Integer z) {
test_code: import static java.util.Map.entry;  
  import java.util.*;
  import java.lang.*;
  // TESTING CODE 
  // ============================================
  class QuestionEvaluator {
      public static String validateSolution(Integer x, Integer y, Integer z, Integer expected){
          try{
              Driver driver = new Driver();
              if (driver.run(x, y, z,expected)){
                  return "PASSED";
              }
              return "FAILED";
              
          } catch (Exception exception_obj){
              return exception_obj.getClass().getSimpleName();
          }
  
      }
      public static void main(String[] args) {
          String result;
          result = validateSolution(23, 98, 25, 23);
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution(87, 55, 94, 55);
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution(35, 90, 29, 29);
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution(25, 9, 41, 9);
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
          result = validateSolution(93, 22, 39, 22);
          System.out.println(String.format("%s%s","TEST-4...",result));    
      
          result = validateSolution(52, 42, 96, 42);
          System.out.println(String.format("%s%s","TEST-5...",result));    
      
          result = validateSolution(95, 88, 26, 26);
          System.out.println(String.format("%s%s","TEST-6...",result));    
      
          result = validateSolution(91, 64, 51, 51);
          System.out.println(String.format("%s%s","TEST-7...",result));    
      
          result = validateSolution(75, 1, 6, 1);
          System.out.println(String.format("%s%s","TEST-8...",result));    
      
          result = validateSolution(96, 44, 76, 44);
          System.out.println(String.format("%s%s","TEST-9...",result));    
      
      }
  }
  
  class Driver{
      public boolean run(Integer x, Integer y, Integer z, Integer expected){
  
          PLACEHOLDER_CLS_NAME sol = new PLACEHOLDER_CLS_NAME();
          return validateSolution(sol.PLACEHOLDER_FN_NAME(x, y, z),expected);
      }
      
      public boolean validateSolution(Integer actual, Integer expected){
          return actual.equals(expected);
      }
  }
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
source_py: def smallest_of_three_integers_without_comparison_operators(x, y, z):
      c = 0
      while (x and y and z):
          x = (x - 1)
          y = (y - 1)
          z = (z - 1)
          c = (c + 1)
      return c
source_cpp: int smallest_of_three_integers_without_comparison_operators(int x, int y, int z) {
    int c = 0;
    while ( x && y && z ) {
      x --;
      y --;
      z --;
      c ++;
    }
    return c;
  }