title: Efficient Way To Multiply With 7
signature: efficient_way_to_multiply_with_7 <- function(n) {
test_code: 
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  validate_solution <- function(actual, expected) {
      toString(actual)==toString(expected)
  }
  
  driver <- function(n, expected){
      if (validate_solution(PLACEHOLDER_FN_NAME(n), expected)){
          "PASSED"
      } else{
          "FAILED"
      }
  }
  
  main <- function() {
      cat(sprintf("TEST-0...%s\n",driver(
          41L, 
          287L
      )))
  
      cat(sprintf("TEST-1...%s\n",driver(
          42L, 
          294L
      )))
  
      cat(sprintf("TEST-2...%s\n",driver(
          62L, 
          434L
      )))
  
      cat(sprintf("TEST-3...%s\n",driver(
          4L, 
          28L
      )))
  
      cat(sprintf("TEST-4...%s\n",driver(
          31L, 
          217L
      )))
  
      cat(sprintf("TEST-5...%s\n",driver(
          75L, 
          525L
      )))
  
      cat(sprintf("TEST-6...%s\n",driver(
          5L, 
          35L
      )))
  
      cat(sprintf("TEST-7...%s\n",driver(
          75L, 
          525L
      )))
  
      cat(sprintf("TEST-8...%s\n",driver(
          85L, 
          595L
      )))
  
      cat(sprintf("TEST-9...%s\n",driver(
          19L, 
          133L
      )))
  
  }
  
  main()
source_py: def efficient_way_to_multiply_with_7(n):
      return ((n << 3) - n)
source_cpp: long efficient_way_to_multiply_with_7(long n) {
    return ( ( n << 3 ) - n );
  }