title: Find Sum Even Index Binomial Coefficients 1
signature: fun findSumEvenIndexBinomialCoefficients1(n: Int): Long {
source_py: def find_sum_even_index_binomial_coefficients_1(n):
      return (1 << (n - 1))
source_cpp: int find_sum_even_index_binomial_coefficients_1(int n) {
    return ( 1 << ( n - 1 ) );
  }
question_info.test_list: [{"idx": 0, "outputs": 36028797018963968, "inputs": {"n": 56}}, {"idx": 1, "outputs": 134217728, "inputs": {"n": 28}}, {"idx": 2, "outputs": 8, "inputs": {"n": 4}}, {"idx": 3, "outputs": 8388608, "inputs": {"n": 24}}, {"idx": 4, "outputs": 536870912, "inputs": {"n": 30}}, {"idx": 5, "outputs": 140737488355328, "inputs": {"n": 48}}, {"idx": 6, "outputs": 2147483648, "inputs": {"n": 32}}, {"idx": 7, "outputs": 4096, "inputs": {"n": 13}}, {"idx": 8, "outputs": 262144, "inputs": {"n": 19}}]
question_info.extension: kts
question_info.test_code: package main
  
  import kotlin.text.*
  import kotlin.math.*
  
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  fun validateSolution(actual:Long, expected:Long):Boolean{
    return actual.equals(expected)
  }
  fun driver(n: Int, expected:Long):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(n), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver(56, 36028797018963968)
      println("TEST-0...${result}")
      
      result = driver(28, 134217728)
      println("TEST-1...${result}")
      
      result = driver(4, 8)
      println("TEST-2...${result}")
      
      result = driver(24, 8388608)
      println("TEST-3...${result}")
      
      result = driver(30, 536870912)
      println("TEST-4...${result}")
      
      result = driver(48, 140737488355328)
      println("TEST-5...${result}")
      
      result = driver(32, 2147483648)
      println("TEST-6...${result}")
      
      result = driver(13, 4096)
      println("TEST-7...${result}")
      
      result = driver(19, 262144)
      println("TEST-8...${result}")
      
          
  }
  
  main()
question_info.entry_fn_name: findSumEvenIndexBinomialCoefficients1
question_info.entry_cls_name: Solution
question_info.test_case_ids: 0 1 2 3 4 5 6 7 8
question_info.commands: kotlinc -script __FILENAME__ -no-reflect -nowarn