title: Find Whether An Array Is Subset Of Another Array Set 1
signature: find_whether_an_array_is_subset_of_another_array_set_1 <- function(arr1, arr2, m, n) {
test_code: 
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  validate_solution <- function(actual, expected) {
      toString(actual)==toString(expected)
  }
  
  driver <- function(arr1, arr2, m, n, expected){
      if (validate_solution(PLACEHOLDER_FN_NAME(arr1, arr2, m, n), expected)){
          "PASSED"
      } else{
          "FAILED"
      }
  }
  
  main <- function() {
      cat(sprintf("TEST-0...%s\n",driver(
          list(7L, 10L, 10L, 10L, 13L, 17L, 23L, 24L, 25L, 28L, 30L, 33L, 37L, 49L, 49L, 50L, 57L, 60L, 60L, 63L, 63L, 64L, 65L, 65L, 72L, 81L, 84L, 85L, 85L, 94L, 96L), list(10L, 13L, 17L, 63L), 29L, 4L, 
          1L
      )))
  
      cat(sprintf("TEST-1...%s\n",driver(
          list(12L, 30L, -94L, -92L, -62L, -18L, -56L, 44L, -50L, -92L, 6L, 2L, 56L, -90L, 0L, 0L, 18L, 86L, -58L, 58L, -54L, 62L, -94L, 94L, 0L, 8L, 82L, -68L, -88L, -18L, 8L, -80L, -42L, 18L, 62L, -8L, 56L, -76L, -42L, 56L, 44L, -2L, -20L, 62L, -14L, 74L, -86L, -76L), list(12L, -18L, 44L), 46L, 3L, 
          1L
      )))
  
      cat(sprintf("TEST-2...%s\n",driver(
          list(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L), list(0L, 0L, 0L), 34L, 3L, 
          1L
      )))
  
      cat(sprintf("TEST-3...%s\n",driver(
          list(94L, 26L, 32L, 20L, 46L, 55L, 9L, 51L, 57L, 80L, 45L, 38L, 68L, 12L, 90L, 10L, 80L, 65L, 12L, 52L, 51L, 86L, 64L, 57L, 93L, 19L, 30L, 92L, 85L, 82L, 24L, 26L, 36L, 56L), list(80L, 58L, 32L, 2L), 17L, 4L, 
          1L
      )))
  
      cat(sprintf("TEST-4...%s\n",driver(
          list(-98L, -90L, -86L, -86L, -84L, -84L, -82L, -80L, -78L, -72L, -70L, -68L, -66L, -64L, -52L, -52L, -50L, -38L, -28L, -26L, -24L, -14L, -8L, 16L, 26L, 26L, 28L, 34L, 36L, 40L, 42L, 44L, 44L, 46L, 50L, 60L, 68L, 78L, 80L, 86L, 90L, 92L, 98L), list(-99L, -90L, -90L, -86L), 23L, 4L, 
          1L
      )))
  
      cat(sprintf("TEST-5...%s\n",driver(
          list(1L, 0L, 1L, 0L, 1L, 0L, 0L, 0L, 1L, 0L, 0L, 0L, 0L, 1L, 1L, 0L, 1L, 1L), list(0L, 0L, 1L, 1L), 10L, 4L, 
          1L
      )))
  
      cat(sprintf("TEST-6...%s\n",driver(
          list(6L, 8L, 11L, 13L, 14L, 26L, 26L, 41L, 48L, 70L, 82L, 83L, 84L, 88L, 96L), list(1L, 9L, 12L, 16L), 10L, 4L, 
          1L
      )))
  
      cat(sprintf("TEST-7...%s\n",driver(
          list(-88L, 80L, 62L, 76L, 48L, 92L, 18L, -94L, -62L, 98L, -46L, -50L, 70L, 32L, 68L, -54L, 26L, 16L, 94L, 0L, -84L, 2L, -16L, 88L, 26L, -38L, 18L, 64L, 90L, 80L, 76L, 2L, 14L, -90L, 50L, 4L, 76L, 30L), list(-76L, -54L, 4L, 78L), 27L, 4L, 
          1L
      )))
  
      cat(sprintf("TEST-8...%s\n",driver(
          list(0L, 0L, 0L, 0L, 0L, 1L, 1L, 1L, 1L, 1L, 1L, 1L), list(0L, 1L, 0L, 1L), 10L, 4L, 
          1L
      )))
  
      cat(sprintf("TEST-9...%s\n",driver(
          list(54L, 44L, 97L, 92L, 13L, 54L, 27L, 8L, 43L, 70L, 77L, 84L, 55L, 64L, 5L, 59L, 27L, 19L, 65L, 68L, 66L, 26L, 33L, 38L, 7L), list(93L, 5L, 9L, 13L), 19L, 4L, 
          1L
      )))
  
  }
  
  main()
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;
  }