Skip to content

Commit

Permalink
def third_max(nums)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-abdellatif98 committed Feb 16, 2022
1 parent 06ae87c commit 6f5e5e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions third_max.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
def third_max(nums)
return nums.uniq.sort[-3]
end

0 comments on commit 6f5e5e9

Please sign in to comment.