title: One Line Function For Factorial Of A Number
signature: function oneLineFunctionForFactorialOfANumber(n) {
test_code: 
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  function convertToString(value) {
      return JSON.stringify(value, function (key, val) {
          if (val instanceof Set) {
              return Array.from(val);
          } return val;});
  }
  
  function validateSolution(actual, expected){
      return convertToString(actual)===convertToString(expected);
  }
  
  function driver(n, expected){
      try{
          if (validateSolution(PLACEHOLDER_FN_NAME(n),expected)){
              return "PASSED";
          }
          return "FAILED";
      } catch (error) {
        return error.name;
      }
      
  }
      
  function main(){
    let result = '';
    result = driver(16, 20922789888000);
    console.log(`TEST-0...${result}`);
  
    result = driver(6, 720);
    console.log(`TEST-1...${result}`);
  
    process.exit(0);
  };
  
  if (require.main === module) {
    main();
  }
source_py: def one_line_function_for_factorial_of_a_number(n):
      return (1 if ((n == 1) or (n == 0)) else (n * one_line_function_for_factorial_of_a_number((n - 1))))
source_cpp: int one_line_function_for_factorial_of_a_number(int n) {
    return ( n == 1 || n == 0 ) ? 1 : n * one_line_function_for_factorial_of_a_number ( n - 1 );
  }