Skip to content

Commit

Permalink
Update Minimum_number.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
STREIN-11 authored Oct 18, 2024
1 parent f1c071f commit 8cfad66
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Daily/Minimum_number.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
You are given an array arr of n elements. In one operation you can pick two indices i and j, such that arr[i] >= arr[j] and
replace the value of arr[i] with (arr[i] - arr[j]). You have to minimize the values of the array after performing any number
of such operations.
Example 1:
Input:
n = 3
Expand Down

0 comments on commit 8cfad66

Please sign in to comment.