title: Breaking Number First Part Integral Division Second Power 10
signature: class Solution {
  
      public Integer breakingNumberFirstPartIntegralDivisionSecondPower10(String n) {
source_py: def breaking_number_first_part_integral_division_second_power_10(N):
      length = len(N)
      l = int((length / 2))
      count = 0
      for i in range((l + 1)):
          s = N[0:(0 + i)]
          l1 = len(s)
          t = N[i:(l1 + i)]
          try:
              if ((s[0] == '0') or (t[0] == '0')):
                  continue
          except:
              continue
          if (s == t):
              count += 1
      return count
source_cpp: int breaking_number_first_part_integral_division_second_power_10(string N) {
    int len = N . length ( );
    int l = ( len ) / 2;
    int count = 0;
    for ( int i = 1;
    i <= l;
    i ++ ) {
      string s = N . substr ( 0, i );
      int l1 = s . length ( );
      string t = N . substr ( i, l1 );
      if ( s [ 0 ] == '0' || t [ 0 ] == '0' ) continue;
      if ( s . compare ( t ) == 0 ) count ++;
    }
    return count;
  }
question_info.extension: java
question_info.entry_fn_name: breakingNumberFirstPartIntegralDivisionSecondPower10
question_info.entry_cls_name: Solution
question_info.test_list: [{"idx": 0, "outputs": 0, "inputs": {"n": "ZCoQhuM"}}, {"idx": 1, "outputs": 0, "inputs": {"n": "2674377254"}}, {"idx": 2, "outputs": 1, "inputs": {"n": "11"}}, {"idx": 3, "outputs": 0, "inputs": {"n": "LbuGlvRyWAPBpo"}}, {"idx": 4, "outputs": 0, "inputs": {"n": "26382426486138"}}, {"idx": 5, "outputs": 2, "inputs": {"n": "111010111010"}}, {"idx": 6, "outputs": 0, "inputs": {"n": "hUInqJXNdbfP"}}, {"idx": 7, "outputs": 0, "inputs": {"n": "5191"}}, {"idx": 8, "outputs": 1, "inputs": {"n": "1110101101"}}, {"idx": 9, "outputs": 2, "inputs": {"n": "2202200"}}]
question_info.test_code: import static java.util.Map.entry;  
  import java.util.*;
  import java.lang.*;
  // TESTING CODE 
  // ============================================
  class QuestionEvaluator {
      public static String validateSolution(String n, Integer 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("ZCoQhuM", 0);
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution("2674377254", 0);
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution("11", 1);
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution("LbuGlvRyWAPBpo", 0);
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
          result = validateSolution("26382426486138", 0);
          System.out.println(String.format("%s%s","TEST-4...",result));    
      
          result = validateSolution("111010111010", 2);
          System.out.println(String.format("%s%s","TEST-5...",result));    
      
          result = validateSolution("hUInqJXNdbfP", 0);
          System.out.println(String.format("%s%s","TEST-6...",result));    
      
          result = validateSolution("5191", 0);
          System.out.println(String.format("%s%s","TEST-7...",result));    
      
          result = validateSolution("1110101101", 1);
          System.out.println(String.format("%s%s","TEST-8...",result));    
      
          result = validateSolution("2202200", 2);
          System.out.println(String.format("%s%s","TEST-9...",result));    
      
      }
  }
  
  class Driver{
      public boolean run(String n, Integer expected){
  
          PLACEHOLDER_CLS_NAME sol = new PLACEHOLDER_CLS_NAME();
          return validateSolution(sol.PLACEHOLDER_FN_NAME(n),expected);
      }
      
      public boolean validateSolution(Integer actual, Integer 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__