title: Find Whether An Array Is Subset Of Another Array Set 1
signature: fun findWhetherAnArrayIsSubsetOfAnotherArraySet1(arr1: ArrayList<Int>, arr2: ArrayList<Int>, m: Int, n: Int): Int {
source_py: def find_whether_an_array_is_subset_of_another_array_set_1(arr1, arr2, m, n):
      i = 0
      j = 0
      for i in range(n):
          for j in range(m):
              if (arr2[i] == arr1[j]):
                  break
          if (j == m):
              return 0
      return 1
source_cpp: bool find_whether_an_array_is_subset_of_another_array_set_1(vector<int> arr1, vector<int> arr2, int m, int n) {
    int i = 0;
    int j = 0;
    for ( i = 0;
    i < n;
    i ++ ) {
      for ( j = 0;
      j < m;
      j ++ ) {
        if ( arr2 [ i ] == arr1 [ j ] ) break;
      }
      if ( j == m ) return 0;
    }
    return 1;
  }
question_info.test_list: [{"idx": 0, "outputs": 1, "inputs": {"arr1": [7, 10, 10, 10, 13, 17, 23, 24, 25, 28, 30, 33, 37, 49, 49, 50, 57, 60, 60, 63, 63, 64, 65, 65, 72, 81, 84, 85, 85, 94, 96], "arr2": [10, 13, 17, 63], "m": 29, "n": 4}}, {"idx": 1, "outputs": 1, "inputs": {"arr1": [12, 30, -94, -92, -62, -18, -56, 44, -50, -92, 6, 2, 56, -90, 0, 0, 18, 86, -58, 58, -54, 62, -94, 94, 0, 8, 82, -68, -88, -18, 8, -80, -42, 18, 62, -8, 56, -76, -42, 56, 44, -2, -20, 62, -14, 74, -86, -76], "arr2": [12, -18, 44], "m": 46, "n": 3}}, {"idx": 2, "outputs": 1, "inputs": {"arr1": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "arr2": [0, 0, 0], "m": 34, "n": 3}}, {"idx": 3, "outputs": 1, "inputs": {"arr1": [94, 26, 32, 20, 46, 55, 9, 51, 57, 80, 45, 38, 68, 12, 90, 10, 80, 65, 12, 52, 51, 86, 64, 57, 93, 19, 30, 92, 85, 82, 24, 26, 36, 56], "arr2": [80, 58, 32, 2], "m": 17, "n": 4}}, {"idx": 4, "outputs": 1, "inputs": {"arr1": [-98, -90, -86, -86, -84, -84, -82, -80, -78, -72, -70, -68, -66, -64, -52, -52, -50, -38, -28, -26, -24, -14, -8, 16, 26, 26, 28, 34, 36, 40, 42, 44, 44, 46, 50, 60, 68, 78, 80, 86, 90, 92, 98], "arr2": [-99, -90, -90, -86], "m": 23, "n": 4}}, {"idx": 5, "outputs": 1, "inputs": {"arr1": [1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1], "arr2": [0, 0, 1, 1], "m": 10, "n": 4}}, {"idx": 6, "outputs": 1, "inputs": {"arr1": [6, 8, 11, 13, 14, 26, 26, 41, 48, 70, 82, 83, 84, 88, 96], "arr2": [1, 9, 12, 16], "m": 10, "n": 4}}, {"idx": 7, "outputs": 1, "inputs": {"arr1": [-88, 80, 62, 76, 48, 92, 18, -94, -62, 98, -46, -50, 70, 32, 68, -54, 26, 16, 94, 0, -84, 2, -16, 88, 26, -38, 18, 64, 90, 80, 76, 2, 14, -90, 50, 4, 76, 30], "arr2": [-76, -54, 4, 78], "m": 27, "n": 4}}, {"idx": 8, "outputs": 1, "inputs": {"arr1": [0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1], "arr2": [0, 1, 0, 1], "m": 10, "n": 4}}, {"idx": 9, "outputs": 1, "inputs": {"arr1": [54, 44, 97, 92, 13, 54, 27, 8, 43, 70, 77, 84, 55, 64, 5, 59, 27, 19, 65, 68, 66, 26, 33, 38, 7], "arr2": [93, 5, 9, 13], "m": 19, "n": 4}}]
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:Int, expected:Int):Boolean{
    return actual.equals(expected)
  }
  fun driver(arr1: ArrayList<Int>, arr2: ArrayList<Int>, m: Int, n: Int, expected:Int):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(arr1, arr2, m, n), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver(arrayListOf(7, 10, 10, 10, 13, 17, 23, 24, 25, 28, 30, 33, 37, 49, 49, 50, 57, 60, 60, 63, 63, 64, 65, 65, 72, 81, 84, 85, 85, 94, 96), arrayListOf(10, 13, 17, 63), 29, 4, 1)
      println("TEST-0...${result}")
      
      result = driver(arrayListOf(12, 30, -94, -92, -62, -18, -56, 44, -50, -92, 6, 2, 56, -90, 0, 0, 18, 86, -58, 58, -54, 62, -94, 94, 0, 8, 82, -68, -88, -18, 8, -80, -42, 18, 62, -8, 56, -76, -42, 56, 44, -2, -20, 62, -14, 74, -86, -76), arrayListOf(12, -18, 44), 46, 3, 1)
      println("TEST-1...${result}")
      
      result = driver(arrayListOf(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), arrayListOf(0, 0, 0), 34, 3, 1)
      println("TEST-2...${result}")
      
      result = driver(arrayListOf(94, 26, 32, 20, 46, 55, 9, 51, 57, 80, 45, 38, 68, 12, 90, 10, 80, 65, 12, 52, 51, 86, 64, 57, 93, 19, 30, 92, 85, 82, 24, 26, 36, 56), arrayListOf(80, 58, 32, 2), 17, 4, 1)
      println("TEST-3...${result}")
      
      result = driver(arrayListOf(-98, -90, -86, -86, -84, -84, -82, -80, -78, -72, -70, -68, -66, -64, -52, -52, -50, -38, -28, -26, -24, -14, -8, 16, 26, 26, 28, 34, 36, 40, 42, 44, 44, 46, 50, 60, 68, 78, 80, 86, 90, 92, 98), arrayListOf(-99, -90, -90, -86), 23, 4, 1)
      println("TEST-4...${result}")
      
      result = driver(arrayListOf(1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1), arrayListOf(0, 0, 1, 1), 10, 4, 1)
      println("TEST-5...${result}")
      
      result = driver(arrayListOf(6, 8, 11, 13, 14, 26, 26, 41, 48, 70, 82, 83, 84, 88, 96), arrayListOf(1, 9, 12, 16), 10, 4, 1)
      println("TEST-6...${result}")
      
      result = driver(arrayListOf(-88, 80, 62, 76, 48, 92, 18, -94, -62, 98, -46, -50, 70, 32, 68, -54, 26, 16, 94, 0, -84, 2, -16, 88, 26, -38, 18, 64, 90, 80, 76, 2, 14, -90, 50, 4, 76, 30), arrayListOf(-76, -54, 4, 78), 27, 4, 1)
      println("TEST-7...${result}")
      
      result = driver(arrayListOf(0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1), arrayListOf(0, 1, 0, 1), 10, 4, 1)
      println("TEST-8...${result}")
      
      result = driver(arrayListOf(54, 44, 97, 92, 13, 54, 27, 8, 43, 70, 77, 84, 55, 64, 5, 59, 27, 19, 65, 68, 66, 26, 33, 38, 7), arrayListOf(93, 5, 9, 13), 19, 4, 1)
      println("TEST-9...${result}")
      
          
  }
  
  main()
question_info.entry_fn_name: findWhetherAnArrayIsSubsetOfAnotherArraySet1
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