title: Find Perimeter Cylinder
signature: function findPerimeterCylinder(diameter: number, height: number): number {
source_py: def find_perimeter_cylinder(diameter, height):
      return (2 * (diameter + height))
source_cpp: int find_perimeter_cylinder(int diameter, int height) {
    return 2 * ( diameter + height );
  }
question_info.test_list: [{"idx": 0, "outputs": 296, "inputs": {"diameter": 70, "height": 78}}, {"idx": 1, "outputs": 286, "inputs": {"diameter": 97, "height": 46}}, {"idx": 2, "outputs": 150, "inputs": {"diameter": 49, "height": 26}}, {"idx": 3, "outputs": 234, "inputs": {"diameter": 56, "height": 61}}, {"idx": 4, "outputs": 332, "inputs": {"diameter": 87, "height": 79}}, {"idx": 5, "outputs": 170, "inputs": {"diameter": 64, "height": 21}}, {"idx": 6, "outputs": 336, "inputs": {"diameter": 75, "height": 93}}, {"idx": 7, "outputs": 212, "inputs": {"diameter": 90, "height": 16}}, {"idx": 8, "outputs": 142, "inputs": {"diameter": 55, "height": 16}}, {"idx": 9, "outputs": 204, "inputs": {"diameter": 73, "height": 29}}]
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(diameter: number, height: number, expected:number): string {
      try{
          if (validateSolution(PLACEHOLDER_FN_NAME(diameter, height),expected)){
              return "PASSED";
          }
          return "FAILED";
      } catch (error) {
        return error.name;
      }
      
  }
      
  function main(){
    let result = '';
    result = driver(70, 78, 296);
    console.log(`TEST-0...${result}`);
  
    result = driver(97, 46, 286);
    console.log(`TEST-1...${result}`);
  
    result = driver(49, 26, 150);
    console.log(`TEST-2...${result}`);
  
    result = driver(56, 61, 234);
    console.log(`TEST-3...${result}`);
  
    result = driver(87, 79, 332);
    console.log(`TEST-4...${result}`);
  
    result = driver(64, 21, 170);
    console.log(`TEST-5...${result}`);
  
    result = driver(75, 93, 336);
    console.log(`TEST-6...${result}`);
  
    result = driver(90, 16, 212);
    console.log(`TEST-7...${result}`);
  
    result = driver(55, 16, 142);
    console.log(`TEST-8...${result}`);
  
    result = driver(73, 29, 204);
    console.log(`TEST-9...${result}`);
  
  };
  
  main();
question_info.extension: ts
question_info.entry_fn_name: findPerimeterCylinder
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