title: Minimum Characters Added Front Make String Palindrome
signature: fun minimumCharactersAddedFrontMakeStringPalindrome(s: String): Boolean {
source_py: def minimum_characters_added_front_make_string_palindrome(s):
      l = len(s)
      i = 0
      j = (l - 1)
      while (i <= j):
          if (s[i] != s[j]):
              return False
          i += 1
          j -= 1
      return True
source_cpp: bool minimum_characters_added_front_make_string_palindrome(string s) {
    int l = s . length ( );
    int j;
    for ( int i = 0, j = l - 1;
    i <= j;
    i ++, j -- ) {
      if ( s [ i ] != s [ j ] ) return false;
    }
    return true;
  }
question_info.test_list: [{"idx": 0, "outputs": true, "inputs": {"s": "aadaa"}}, {"idx": 1, "outputs": false, "inputs": {"s": "2674377254"}}, {"idx": 2, "outputs": true, "inputs": {"s": "11"}}, {"idx": 3, "outputs": false, "inputs": {"s": "0011000 "}}, {"idx": 4, "outputs": false, "inputs": {"s": "26382426486138"}}, {"idx": 5, "outputs": false, "inputs": {"s": "111010111010"}}, {"idx": 6, "outputs": true, "inputs": {"s": "abccba"}}, {"idx": 7, "outputs": false, "inputs": {"s": "5191"}}, {"idx": 8, "outputs": false, "inputs": {"s": "1110101101"}}, {"idx": 9, "outputs": false, "inputs": {"s": "abcdecbe"}}]
question_info.extension: kts
question_info.test_code: package main
  
  import kotlin.text.*
  import kotlin.math.*
  
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  fun validateSolution(actual:Boolean, expected:Boolean):Boolean{
    return actual.equals(expected)
  }
  fun driver(s: String, expected:Boolean):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(s), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver("aadaa", true)
      println("TEST-0...${result}")
      
      result = driver("2674377254", false)
      println("TEST-1...${result}")
      
      result = driver("11", true)
      println("TEST-2...${result}")
      
      result = driver("0011000 ", false)
      println("TEST-3...${result}")
      
      result = driver("26382426486138", false)
      println("TEST-4...${result}")
      
      result = driver("111010111010", false)
      println("TEST-5...${result}")
      
      result = driver("abccba", true)
      println("TEST-6...${result}")
      
      result = driver("5191", false)
      println("TEST-7...${result}")
      
      result = driver("1110101101", false)
      println("TEST-8...${result}")
      
      result = driver("abcdecbe", false)
      println("TEST-9...${result}")
      
          
  }
  
  main()
question_info.entry_fn_name: minimumCharactersAddedFrontMakeStringPalindrome
question_info.entry_cls_name: Solution
question_info.test_case_ids: 0 1 2 3 4 5 6 7 8 9
question_info.commands: kotlinc -script __FILENAME__ -no-reflect -nowarn