Skip to content

Commit

Permalink
leetcode find the int added to array
Browse files Browse the repository at this point in the history
  • Loading branch information
ferhatelmas committed Apr 29, 2024
1 parent 00cafe5 commit 6040d65
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions leetcode/algorithms/easy/find_the_integer_added_to_array.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from typing import List


class Solution:
def addedInteger(self, nums1: List[int], nums2: List[int]) -> int:
return min(nums2) - min(nums1)

0 comments on commit 6040d65

Please sign in to comment.