title: Find Sum Even Index Binomial Coefficients 1
signature: class Solution {
  
      public Long findSumEvenIndexBinomialCoefficients1(Integer n) {
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.extension: java
question_info.entry_fn_name: findSumEvenIndexBinomialCoefficients1
question_info.entry_cls_name: Solution
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.test_code: import static java.util.Map.entry;  
  import java.util.*;
  import java.lang.*;
  // TESTING CODE 
  // ============================================
  class QuestionEvaluator {
      public static String validateSolution(Integer n, Long expected){
          try{
              Driver driver = new Driver();
              if (driver.run(n,expected)){
                  return "PASSED";
              }
              return "FAILED";
              
          } catch (Exception exception_obj){
              return exception_obj.getClass().getSimpleName();
          }
  
      }
      public static void main(String[] args) {
          String result;
          result = validateSolution(56, 36028797018963968L);
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution(28, 134217728L);
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution(4, 8L);
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution(24, 8388608L);
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
          result = validateSolution(30, 536870912L);
          System.out.println(String.format("%s%s","TEST-4...",result));    
      
          result = validateSolution(48, 140737488355328L);
          System.out.println(String.format("%s%s","TEST-5...",result));    
      
          result = validateSolution(32, 2147483648L);
          System.out.println(String.format("%s%s","TEST-6...",result));    
      
          result = validateSolution(13, 4096L);
          System.out.println(String.format("%s%s","TEST-7...",result));    
      
          result = validateSolution(19, 262144L);
          System.out.println(String.format("%s%s","TEST-8...",result));    
      
      }
  }
  
  class Driver{
      public boolean run(Integer n, Long expected){
  
          PLACEHOLDER_CLS_NAME sol = new PLACEHOLDER_CLS_NAME();
          return validateSolution(sol.PLACEHOLDER_FN_NAME(n),expected);
      }
      
      public boolean validateSolution(Long actual, Long expected){
          return actual.equals(expected);
      }
  }
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
question_info.test_case_ids: 0 1 2 3 4 5 6 7 8
question_info.commands: java __FILENAME__