title: C Program Factorial Number 2
signature: class Solution {
  
      public Long cProgramFactorialNumber2(Integer n) {
source_py: def c_program_factorial_number_2(n):
      return (1 if ((n == 1) or (n == 0)) else (n * c_program_factorial_number_2((n - 1))))
source_cpp: int c_program_factorial_number_2(int n) {
    return ( n == 1 || n == 0 ) ? 1 : n * c_program_factorial_number_2 ( n - 1 );
  }
question_info.extension: java
question_info.entry_fn_name: cProgramFactorialNumber2
question_info.entry_cls_name: Solution
question_info.test_list: [{"idx": 0, "outputs": 121645100408832000, "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(19, 121645100408832000L);
          System.out.println(String.format("%s%s","TEST-0...",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
question_info.commands: java __FILENAME__