title: Smallest Of Three Integers Without Comparison Operators
signature: def smallestOfThreeIntegersWithoutComparisonOperators(x: Int, y: Int, z: Int) = {
test_code: import scala.collection.mutable.HashMap
  import scala.collection.immutable.HashSet
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  
  // TESTING CODE 
  // ============================================
  def validateSolution(actual: Int , expected: Int): Boolean = {
      actual.toString == expected.toString
  }
  
  def driver(x: Int, y: Int, z: Int, expected: Int): String = {
      try {
          if (validateSolution(PLACEHOLDER_FN_NAME(x, y, z),expected)) {
              "PASSED"
          } else{
              "FAILED"
          }
      }catch{
          case e: Exception => {e.getClass.getName}
      }
  
  }
  object QuestionEvaluator extends App {
  
      println(s"TEST-0...${driver(
        23, 98, 25, 
        23    
      )}")   
  
  
      println(s"TEST-1...${driver(
        87, 55, 94, 
        55    
      )}")   
  
  
      println(s"TEST-2...${driver(
        35, 90, 29, 
        29    
      )}")   
  
  
      println(s"TEST-3...${driver(
        25, 9, 41, 
        9    
      )}")   
  
  
      println(s"TEST-4...${driver(
        93, 22, 39, 
        22    
      )}")   
  
  
      println(s"TEST-5...${driver(
        52, 42, 96, 
        42    
      )}")   
  
  
      println(s"TEST-6...${driver(
        95, 88, 26, 
        26    
      )}")   
  
  
      println(s"TEST-7...${driver(
        91, 64, 51, 
        51    
      )}")   
  
  
      println(s"TEST-8...${driver(
        75, 1, 6, 
        1    
      )}")   
  
  
      println(s"TEST-9...${driver(
        96, 44, 76, 
        44    
      )}")   
  
  }
  
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;
  }