title: Sum Binomial Coefficients 1
signature: function sumBinomialCoefficients1(n: number): number {
source_py: def sum_binomial_coefficients_1(n):
      return (1 << n)
source_cpp: int sum_binomial_coefficients_1(int n) {
    return ( 1 << n );
  }
question_info.test_list: [{"idx": 0, "outputs": 281474976710656, "inputs": {"n": 48}}, {"idx": 1, "outputs": 4398046511104, "inputs": {"n": 42}}, {"idx": 2, "outputs": 32768, "inputs": {"n": 15}}, {"idx": 3, "outputs": 8388608, "inputs": {"n": 23}}, {"idx": 4, "outputs": 2199023255552, "inputs": {"n": 41}}, {"idx": 5, "outputs": 70368744177664, "inputs": {"n": 46}}, {"idx": 6, "outputs": 68719476736, "inputs": {"n": 36}}, {"idx": 7, "outputs": 9007199254740992, "inputs": {"n": 53}}]
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(n: number, expected:number): string {
      try{
          if (validateSolution(PLACEHOLDER_FN_NAME(n),expected)){
              return "PASSED";
          }
          return "FAILED";
      } catch (error) {
        return error.name;
      }
      
  }
      
  function main(){
    let result = '';
    result = driver(48, 281474976710656);
    console.log(`TEST-0...${result}`);
  
    result = driver(42, 4398046511104);
    console.log(`TEST-1...${result}`);
  
    result = driver(15, 32768);
    console.log(`TEST-2...${result}`);
  
    result = driver(23, 8388608);
    console.log(`TEST-3...${result}`);
  
    result = driver(41, 2199023255552);
    console.log(`TEST-4...${result}`);
  
    result = driver(46, 70368744177664);
    console.log(`TEST-5...${result}`);
  
    result = driver(36, 68719476736);
    console.log(`TEST-6...${result}`);
  
    result = driver(53, 9007199254740992);
    console.log(`TEST-7...${result}`);
  
  };
  
  main();
question_info.extension: ts
question_info.entry_fn_name: sumBinomialCoefficients1
question_info.test_case_ids: 0 1 2 3 4 5 6 7
question_info.commands: tsc --target es2020 --lib es5,dom,es2015,es2020 __FILENAME__
question_info.commands: node __FILENAME__.js