title: Number Is Divisible By 29 Or Not
signature: class Solution {
  
      public Boolean numberIsDivisibleBy29OrNot(Long n) {
source_py: def number_is_divisible_by_29_or_not(n):
      while int((n / 100)):
          last_digit = int((n % 10))
          n = int((n / 10))
          n += (last_digit * 3)
      return ((n % 29) == 0)
source_cpp: bool number_is_divisible_by_29_or_not(long long int n) {
    while ( n / 100 ) {
      int last_digit = n % 10;
      n /= 10;
      n += last_digit * 3;
    }
    return ( n % 29 == 0 );
  }
question_info.extension: java
question_info.entry_fn_name: numberIsDivisibleBy29OrNot
question_info.entry_cls_name: Solution
question_info.test_list: [{"idx": 0, "outputs": true, "inputs": {"n": 29}}, {"idx": 1, "outputs": true, "inputs": {"n": 0}}, {"idx": 2, "outputs": false, "inputs": {"n": 65}}, {"idx": 3, "outputs": false, "inputs": {"n": 1419}}, {"idx": 4, "outputs": false, "inputs": {"n": 54}}, {"idx": 5, "outputs": false, "inputs": {"n": 7}}, {"idx": 6, "outputs": false, "inputs": {"n": 44}}, {"idx": 7, "outputs": false, "inputs": {"n": 34}}, {"idx": 8, "outputs": true, "inputs": {"n": 1160}}, {"idx": 9, "outputs": true, "inputs": {"n": 292929002929}}]
question_info.test_code: import static java.util.Map.entry;  
  import java.util.*;
  import java.lang.*;
  // TESTING CODE 
  // ============================================
  class QuestionEvaluator {
      public static String validateSolution(Long n, Boolean 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(29L, true);
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution(0L, true);
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution(65L, false);
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution(1419L, false);
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
          result = validateSolution(54L, false);
          System.out.println(String.format("%s%s","TEST-4...",result));    
      
          result = validateSolution(7L, false);
          System.out.println(String.format("%s%s","TEST-5...",result));    
      
          result = validateSolution(44L, false);
          System.out.println(String.format("%s%s","TEST-6...",result));    
      
          result = validateSolution(34L, false);
          System.out.println(String.format("%s%s","TEST-7...",result));    
      
          result = validateSolution(1160L, true);
          System.out.println(String.format("%s%s","TEST-8...",result));    
      
          result = validateSolution(292929002929L, true);
          System.out.println(String.format("%s%s","TEST-9...",result));    
      
      }
  }
  
  class Driver{
      public boolean run(Long n, Boolean expected){
  
          PLACEHOLDER_CLS_NAME sol = new PLACEHOLDER_CLS_NAME();
          return validateSolution(sol.PLACEHOLDER_FN_NAME(n),expected);
      }
      
      public boolean validateSolution(Boolean actual, Boolean 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__