title: Smallest Of Three Integers Without Comparison Operators
signature: function smallestOfThreeIntegersWithoutComparisonOperators(x: number, y: number, z: number): number {
test_code: 
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  function convertToString(value: any): string{
      return JSON.stringify(value, function (key, val) {
          if (val instanceof Set) {
              return Array.from(val);
          } return val;});
  }
  
  function validateSolution(actual: number, expected: number): boolean {
      return convertToString(actual) === convertToString(expected);
  }
  
  function driver(x: number, y: number, z: number, expected:number): string {
      try{
          if (validateSolution(PLACEHOLDER_FN_NAME(x, y, z),expected)){
              return "PASSED";
          }
          return "FAILED";
      } catch (error) {
        return error.name;
      }
      
  }
      
  function main(){
    let result = '';
    result = driver(23, 98, 25, 23);
    console.log(`TEST-0...${result}`);
  
    result = driver(87, 55, 94, 55);
    console.log(`TEST-1...${result}`);
  
    result = driver(35, 90, 29, 29);
    console.log(`TEST-2...${result}`);
  
    result = driver(25, 9, 41, 9);
    console.log(`TEST-3...${result}`);
  
    result = driver(93, 22, 39, 22);
    console.log(`TEST-4...${result}`);
  
    result = driver(52, 42, 96, 42);
    console.log(`TEST-5...${result}`);
  
    result = driver(95, 88, 26, 26);
    console.log(`TEST-6...${result}`);
  
    result = driver(91, 64, 51, 51);
    console.log(`TEST-7...${result}`);
  
    result = driver(75, 1, 6, 1);
    console.log(`TEST-8...${result}`);
  
    result = driver(96, 44, 76, 44);
    console.log(`TEST-9...${result}`);
  
  };
  
  main();
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;
  }