title: Number Digits Product Two Numbers 1
signature: class Solution {
  
      public Integer numberDigitsProductTwoNumbers1(Integer a, Integer b) {
test_code: import static java.util.Map.entry;  
  import java.util.*;
  import java.lang.*;
  // TESTING CODE 
  // ============================================
  class QuestionEvaluator {
      public static String validateSolution(Integer a, Integer b, Integer expected){
          try{
              Driver driver = new Driver();
              if (driver.run(a, b,expected)){
                  return "PASSED";
              }
              return "FAILED";
              
          } catch (Exception exception_obj){
              return exception_obj.getClass().getSimpleName();
          }
  
      }
      public static void main(String[] args) {
          String result;
          result = validateSolution(97, 91, 4);
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution(52, 49, 4);
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution(95, 34, 4);
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution(35, 40, 4);
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
          result = validateSolution(40, 85, 4);
          System.out.println(String.format("%s%s","TEST-4...",result));    
      
          result = validateSolution(18, 97, 4);
          System.out.println(String.format("%s%s","TEST-5...",result));    
      
          result = validateSolution(92, 15, 4);
          System.out.println(String.format("%s%s","TEST-6...",result));    
      
          result = validateSolution(73, 98, 4);
          System.out.println(String.format("%s%s","TEST-7...",result));    
      
          result = validateSolution(10, 62, 3);
          System.out.println(String.format("%s%s","TEST-8...",result));    
      
          result = validateSolution(82, 22, 4);
          System.out.println(String.format("%s%s","TEST-9...",result));    
      
      }
  }
  
  class Driver{
      public boolean run(Integer a, Integer b, Integer expected){
  
          PLACEHOLDER_CLS_NAME sol = new PLACEHOLDER_CLS_NAME();
          return validateSolution(sol.PLACEHOLDER_FN_NAME(a, b),expected);
      }
      
      public boolean validateSolution(Integer actual, Integer expected){
          return actual.equals(expected);
      }
  }
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
source_py: def number_digits_product_two_numbers_1(a, b):
      if ((a == 0) or (b == 0)):
          return 1
      return (math.floor((math.log10(abs(a)) + math.log10(abs(b)))) + 1)
source_cpp: int number_digits_product_two_numbers_1(int a, int b) {
    if ( a == 0 || b == 0 ) return 1;
    return floor ( log10 ( abs ( a ) ) + log10 ( abs ( b ) ) ) + 1;
  }