title: Quick Way Check Characters String
signature: fun quickWayCheckCharactersString(s: String): Boolean {
source_py: def quick_way_check_characters_string(s):
      n = len(s)
      for i in range(1, n):
          if (s[i] != s[0]):
              return False
      return True
source_cpp: bool quick_way_check_characters_string(string s) {
    int n = s . length ( );
    for ( int i = 1;
    i < n;
    i ++ ) if ( s [ i ] != s [ 0 ] ) return false;
    return true;
  }
question_info.test_list: [{"idx": 0, "outputs": true, "inputs": {"s": ""}}, {"idx": 1, "outputs": true, "inputs": {"s": "ggg"}}, {"idx": 2, "outputs": true, "inputs": {"s": "11"}}, {"idx": 3, "outputs": false, "inputs": {"s": "KoYIHns"}}, {"idx": 4, "outputs": false, "inputs": {"s": "232"}}, {"idx": 5, "outputs": false, "inputs": {"s": "10111000011101"}}, {"idx": 6, "outputs": true, "inputs": {"s": "DDDD"}}, {"idx": 7, "outputs": true, "inputs": {"s": "11"}}, {"idx": 8, "outputs": true, "inputs": {"s": "11111"}}, {"idx": 9, "outputs": false, "inputs": {"s": "ewJvixQzu"}}]
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("", true)
      println("TEST-0...${result}")
      
      result = driver("ggg", true)
      println("TEST-1...${result}")
      
      result = driver("11", true)
      println("TEST-2...${result}")
      
      result = driver("KoYIHns", false)
      println("TEST-3...${result}")
      
      result = driver("232", false)
      println("TEST-4...${result}")
      
      result = driver("10111000011101", false)
      println("TEST-5...${result}")
      
      result = driver("DDDD", true)
      println("TEST-6...${result}")
      
      result = driver("11", true)
      println("TEST-7...${result}")
      
      result = driver("11111", true)
      println("TEST-8...${result}")
      
      result = driver("ewJvixQzu", false)
      println("TEST-9...${result}")
      
          
  }
  
  main()
question_info.entry_fn_name: quickWayCheckCharactersString
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