title: Total Number Of Non Decreasing Numbers With N Digits 1
signature: class Solution {
  
      public Long totalNumberOfNonDecreasingNumbersWithNDigits1(Integer n) {
source_py: def total_number_of_non_decreasing_numbers_with_n_digits_1(n):
      N = 10
      count = 1
      for i in range(1, (n + 1)):
          count = int((count * ((N + i) - 1)))
          count = int((count / i))
      return count
source_cpp: long long int total_number_of_non_decreasing_numbers_with_n_digits_1(int n) {
    int N = 10;
    long long count = 1;
    for ( int i = 1;
    i <= n;
    i ++ ) {
      count *= ( N + i - 1 );
      count /= i;
    }
    return count;
  }
question_info.extension: java
question_info.entry_fn_name: totalNumberOfNonDecreasingNumbersWithNDigits1
question_info.entry_cls_name: Solution
question_info.test_list: [{"idx": 0, "outputs": 2054455634, "inputs": {"n": 40}}, {"idx": 1, "outputs": 167960, "inputs": {"n": 11}}, {"idx": 2, "outputs": 2509710226100, "inputs": {"n": 94}}, {"idx": 3, "outputs": 293052087900, "inputs": {"n": 73}}, {"idx": 4, "outputs": 5005, "inputs": {"n": 6}}, {"idx": 5, "outputs": 293052087900, "inputs": {"n": 73}}, {"idx": 6, "outputs": 42757703560, "inputs": {"n": 58}}, {"idx": 7, "outputs": 2054455634, "inputs": {"n": 40}}, {"idx": 8, "outputs": 97082021465, "inputs": {"n": 64}}, {"idx": 9, "outputs": 125595622175, "inputs": {"n": 66}}]
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(40, 2054455634L);
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution(11, 167960L);
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution(94, 2509710226100L);
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution(73, 293052087900L);
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
          result = validateSolution(6, 5005L);
          System.out.println(String.format("%s%s","TEST-4...",result));    
      
          result = validateSolution(73, 293052087900L);
          System.out.println(String.format("%s%s","TEST-5...",result));    
      
          result = validateSolution(58, 42757703560L);
          System.out.println(String.format("%s%s","TEST-6...",result));    
      
          result = validateSolution(40, 2054455634L);
          System.out.println(String.format("%s%s","TEST-7...",result));    
      
          result = validateSolution(64, 97082021465L);
          System.out.println(String.format("%s%s","TEST-8...",result));    
      
          result = validateSolution(66, 125595622175L);
          System.out.println(String.format("%s%s","TEST-9...",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 9
question_info.commands: java __FILENAME__