Skip to content

Commit

Permalink
Update Maximum.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
TheIronBorn authored Jun 4, 2017
1 parent ded16b8 commit 8e85522
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Select Minimum Maximum/Maximum.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Finds the maximum value in an array in O(n) time.
*/

func maximum1<T: Comparable>(_ array: [T]) -> T? {
func maximum<T: Comparable>(_ array: [T]) -> T? {
guard var maximum = array.first else { return nil }

for element in array.dropFirst() {
Expand Down

0 comments on commit 8e85522

Please sign in to comment.