title: Smallest Of Three Integers Without Comparison Operators
signature: smallest_of_three_integers_without_comparison_operators <- function(x, y, z) {
test_code: 
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  validate_solution <- function(actual, expected) {
      toString(actual)==toString(expected)
  }
  
  driver <- function(x, y, z, expected){
      if (validate_solution(PLACEHOLDER_FN_NAME(x, y, z), expected)){
          "PASSED"
      } else{
          "FAILED"
      }
  }
  
  main <- function() {
      cat(sprintf("TEST-0...%s\n",driver(
          23L, 98L, 25L, 
          23L
      )))
  
      cat(sprintf("TEST-1...%s\n",driver(
          87L, 55L, 94L, 
          55L
      )))
  
      cat(sprintf("TEST-2...%s\n",driver(
          35L, 90L, 29L, 
          29L
      )))
  
      cat(sprintf("TEST-3...%s\n",driver(
          25L, 9L, 41L, 
          9L
      )))
  
      cat(sprintf("TEST-4...%s\n",driver(
          93L, 22L, 39L, 
          22L
      )))
  
      cat(sprintf("TEST-5...%s\n",driver(
          52L, 42L, 96L, 
          42L
      )))
  
      cat(sprintf("TEST-6...%s\n",driver(
          95L, 88L, 26L, 
          26L
      )))
  
      cat(sprintf("TEST-7...%s\n",driver(
          91L, 64L, 51L, 
          51L
      )))
  
      cat(sprintf("TEST-8...%s\n",driver(
          75L, 1L, 6L, 
          1L
      )))
  
      cat(sprintf("TEST-9...%s\n",driver(
          96L, 44L, 76L, 
          44L
      )))
  
  }
  
  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;
  }