title: Multiply An Integer With 3 5
signature: function multiplyAnIntegerWith35(x: number): number {
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 );
  }
question_info.test_list: [{"idx": 0, "outputs": 203, "inputs": {"x": 58}}, {"idx": 1, "outputs": 56, "inputs": {"x": 16}}, {"idx": 2, "outputs": 287, "inputs": {"x": 82}}, {"idx": 3, "outputs": 115, "inputs": {"x": 33}}, {"idx": 4, "outputs": 308, "inputs": {"x": 88}}, {"idx": 5, "outputs": 178, "inputs": {"x": 51}}, {"idx": 6, "outputs": 283, "inputs": {"x": 81}}, {"idx": 7, "outputs": 133, "inputs": {"x": 38}}, {"idx": 8, "outputs": 276, "inputs": {"x": 79}}, {"idx": 9, "outputs": 311, "inputs": {"x": 89}}]
question_info.entry_cls_name: Solution
question_info.test_code: 
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  function convertToString(value: any): string{
      return JSON.stringify(value, function (key, val) {
          if (val instanceof Set) {
              return Array.from(val);
          } return val;});
  }
  
  function validateSolution(actual: number, expected: number): boolean {
      return convertToString(actual) === convertToString(expected);
  }
  
  function driver(x: number, expected:number): string {
      try{
          if (validateSolution(PLACEHOLDER_FN_NAME(x),expected)){
              return "PASSED";
          }
          return "FAILED";
      } catch (error) {
        return error.name;
      }
      
  }
      
  function main(){
    let result = '';
    result = driver(58, 203);
    console.log(`TEST-0...${result}`);
  
    result = driver(16, 56);
    console.log(`TEST-1...${result}`);
  
    result = driver(82, 287);
    console.log(`TEST-2...${result}`);
  
    result = driver(33, 115);
    console.log(`TEST-3...${result}`);
  
    result = driver(88, 308);
    console.log(`TEST-4...${result}`);
  
    result = driver(51, 178);
    console.log(`TEST-5...${result}`);
  
    result = driver(81, 283);
    console.log(`TEST-6...${result}`);
  
    result = driver(38, 133);
    console.log(`TEST-7...${result}`);
  
    result = driver(79, 276);
    console.log(`TEST-8...${result}`);
  
    result = driver(89, 311);
    console.log(`TEST-9...${result}`);
  
  };
  
  main();
question_info.extension: ts
question_info.entry_fn_name: multiplyAnIntegerWith35
question_info.test_case_ids: 0 1 2 3 4 5 6 7 8 9
question_info.commands: tsc --target es2020 --lib es5,dom,es2015,es2020 __FILENAME__
question_info.commands: node __FILENAME__.js