<jupyter_start><jupyter_text><jupyter_code>def finder(arr1,arr2):

  arr1.sort()
  arr2.sort()

  for num1,num2 in zip(arr1,arr2):
    if num1 != num2:
      return num1     

arr1 =[1,2,3,4,5,6,7]
arr2 =[3,7,2,1,4,6]

finder(arr1,arr2)
import collections
def finder2(arr1,arr2):

  d= collections.defaultdict(int)

  for num in arr2:
    d[num] += 1

  for num in arr1:
    if d[num] ==0:
      return num

    else:
      d[num] -= 1
      

arr1 = [5,5,7,7]
arr2 = [5,7,7]

finder2(arr1,arr2)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.16380952380952382, 'fraction_numerical': 0.09142857142857143, 'mean_word_length': 3.2419354838709675, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '366544', 'license': 'MIT', 'n_tokens_mistral': 260, 'n_tokens_neox': 248, 'n_words': 47, 'path': 'Find_the_missing_element.ipynb', 'repo_name': 'ishancoderr/Coffee_code_Algorithms', 'size': '525'}