title: Sum Binomial Coefficients 1
signature: function sum_binomial_coefficients_1(n)
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.entry_fn_name: sum_binomial_coefficients_1
question_info.entry_cls_name: Solution
question_info.test_case_ids: ['0', '1', '2', '3', '4', '5', '6', '7']
question_info.test_code: 
  
  -- SOLUTION CODE
  -- ============================================
  PLACEHOLDER_CODE_BODY
  
  -- TESTING CODE 
  -- ============================================
  function isCorrect(actual, expected)
      if type(expected) ~= type(actual) then
          return false
      end
      
      if type(expected) == 'table' then
          for k,v_expected in pairs(expected) do
              
              if actual[k] == nil then
                  return false
              end
              local v_actual = actual[k]
              if not isCorrect(v_actual, v_expected) then
                  return false
              end
              actual[k]=nil
          end
      
          if next(actual) then 
              return false
          end
          return true
      else
          return actual == expected
      end
  end
  
  function validateSolution(actual, expected)
      return isCorrect(actual,expected)
  end
  
  function driver(n, expected)
      local exec_result;
      local status, error_msg = pcall(function () 
          exec_result=PLACEHOLDER_FN_NAME(n) 
      end)
      if status then
          if validateSolution(exec_result,expected) then
              return "PASSED"
          end
          return "FAILED"
      else
          return string.format("ERROR=%s",string.gsub(error_msg,".*:[%d]+: ",""))
      end
  end
      
  function main()
      result = driver(48, 281474976710656)
      print(string.format("TEST-0...%s",result))
  
      result = driver(42, 4398046511104)
      print(string.format("TEST-1...%s",result))
  
      result = driver(15, 32768)
      print(string.format("TEST-2...%s",result))
  
      result = driver(23, 8388608)
      print(string.format("TEST-3...%s",result))
  
      result = driver(41, 2199023255552)
      print(string.format("TEST-4...%s",result))
  
      result = driver(46, 70368744177664)
      print(string.format("TEST-5...%s",result))
  
      result = driver(36, 68719476736)
      print(string.format("TEST-6...%s",result))
  
      result = driver(53, 9007199254740992)
      print(string.format("TEST-7...%s",result))
  
  end
  
  main()
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}}]