title: Smallest Of Three Integers Without Comparison Operators 1
signature: def smallestOfThreeIntegersWithoutComparisonOperators1(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(
        48, 63, 56, 
        56    
      )}")   
  
  
      println(s"TEST-1...${driver(
        11, 55, 84, 
        84    
      )}")   
  
  
      println(s"TEST-2...${driver(
        50, 89, 96, 
        96    
      )}")   
  
  
      println(s"TEST-3...${driver(
        21, 71, 74, 
        74    
      )}")   
  
  
      println(s"TEST-4...${driver(
        94, 39, 42, 
        42    
      )}")   
  
  
      println(s"TEST-5...${driver(
        22, 44, 86, 
        86    
      )}")   
  
  
      println(s"TEST-6...${driver(
        3, 41, 68, 
        68    
      )}")   
  
  
      println(s"TEST-7...${driver(
        67, 62, 94, 
        94    
      )}")   
  
  
      println(s"TEST-8...${driver(
        59, 2, 83, 
        83    
      )}")   
  
  
      println(s"TEST-9...${driver(
        50, 11, 1, 
        1    
      )}")   
  
  }
  
source_py: def smallest_of_three_integers_without_comparison_operators_1(x, y, z):
      if (not (y / x)):
          return (y if (not (y / z)) else z)
      return (x if (not (x / z)) else z)
source_cpp: int smallest_of_three_integers_without_comparison_operators_1(int x, int y, int z) {
    if ( ! ( y / x ) ) return ( ! ( y / z ) ) ? y : z;
    return ( ! ( x / z ) ) ? x : z;
  }