title: Multiply An Integer With 3 5
signature: func multiplyAnIntegerWith35(x int) int {
test_code: package main
  
  import (
      "fmt"
      "reflect"
      "math"
      "sort"
  )
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  func validateSolution(actual int, expected int) bool {
      return reflect.DeepEqual(actual,expected)
  }
  
  func driver(x int, expected int) string {
      if validateSolution(PLACEHOLDER_FN_NAME(x),expected) {
              return "PASSED"
      }
      return "FAILED"
  
  }
  
  func main() {
  
      // Use imports to avoid undefined errors
      var _ = reflect.DeepEqual
      _ = math.Abs
      _ = sort.Sort
      result := ""
      result = driver(58, 203)
      fmt.Printf("TEST-0...%s\n", result)
      
      result = driver(16, 56)
      fmt.Printf("TEST-1...%s\n", result)
      
      result = driver(82, 287)
      fmt.Printf("TEST-2...%s\n", result)
      
      result = driver(33, 115)
      fmt.Printf("TEST-3...%s\n", result)
      
      result = driver(88, 308)
      fmt.Printf("TEST-4...%s\n", result)
      
      result = driver(51, 178)
      fmt.Printf("TEST-5...%s\n", result)
      
      result = driver(81, 283)
      fmt.Printf("TEST-6...%s\n", result)
      
      result = driver(38, 133)
      fmt.Printf("TEST-7...%s\n", result)
      
      result = driver(79, 276)
      fmt.Printf("TEST-8...%s\n", result)
      
      result = driver(89, 311)
      fmt.Printf("TEST-9...%s\n", result)
      
          
  }
source_py: def multiply_an_integer_with_3_5(x):
      return (((x << 1) + x) + (x >> 1))
source_cpp: int multiply_an_integer_with_3_5(int x) {
    return ( x << 1 ) + x + ( x >> 1 );
  }