title: Check If String Remains Palindrome After Removing Given Number Of Characters
signature: class Solution {
  
      public Boolean checkIfStringRemainsPalindromeAfterRemovingGivenNumberOfCharacters(String str, Integer n) {
source_py: def check_if_string_remains_palindrome_after_removing_given_number_of_characters(str, n):
      l = len(str)
      if (l >= n):
          return True
      return False
source_cpp: bool check_if_string_remains_palindrome_after_removing_given_number_of_characters(string str, int n) {
    int len = str . length ( );
    if ( len >= n ) return true;
    return false;
  }
question_info.extension: java
question_info.entry_fn_name: checkIfStringRemainsPalindromeAfterRemovingGivenNumberOfCharacters
question_info.entry_cls_name: Solution
question_info.test_list: [{"idx": 0, "outputs": true, "inputs": {"str": "ZCoQhuM", "n": 2}}, {"idx": 1, "outputs": false, "inputs": {"str": "7437725", "n": 53}}, {"idx": 2, "outputs": false, "inputs": {"str": "11", "n": 30}}, {"idx": 3, "outputs": true, "inputs": {"str": "buGlvR", "n": 1}}, {"idx": 4, "outputs": false, "inputs": {"str": "9", "n": 92}}, {"idx": 5, "outputs": true, "inputs": {"str": "101101010110", "n": 3}}, {"idx": 6, "outputs": false, "inputs": {"str": "YguiM", "n": 18}}, {"idx": 7, "outputs": false, "inputs": {"str": "8198", "n": 90}}, {"idx": 8, "outputs": false, "inputs": {"str": "11101", "n": 71}}, {"idx": 9, "outputs": true, "inputs": {"str": "hUInqJXNdbfP", "n": 4}}]
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 str, Integer n, Boolean expected){
          try{
              Driver driver = new Driver();
              if (driver.run(str, 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", 2, true);
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution("7437725", 53, false);
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution("11", 30, false);
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution("buGlvR", 1, true);
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
          result = validateSolution("9", 92, false);
          System.out.println(String.format("%s%s","TEST-4...",result));    
      
          result = validateSolution("101101010110", 3, true);
          System.out.println(String.format("%s%s","TEST-5...",result));    
      
          result = validateSolution("YguiM", 18, false);
          System.out.println(String.format("%s%s","TEST-6...",result));    
      
          result = validateSolution("8198", 90, false);
          System.out.println(String.format("%s%s","TEST-7...",result));    
      
          result = validateSolution("11101", 71, false);
          System.out.println(String.format("%s%s","TEST-8...",result));    
      
          result = validateSolution("hUInqJXNdbfP", 4, true);
          System.out.println(String.format("%s%s","TEST-9...",result));    
      
      }
  }
  
  class Driver{
      public boolean run(String str, Integer n, Boolean expected){
  
          PLACEHOLDER_CLS_NAME sol = new PLACEHOLDER_CLS_NAME();
          return validateSolution(sol.PLACEHOLDER_FN_NAME(str, 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__