You are viewing a single comment's thread. Return to all comments →
Golang:
func breakingRecords(scores []int32) []int32 { records := make([]int32, 2) var min_score, max_score int32 = scores[0], scores[0] for i, v := range scores { if scores[i] > max_score { max_score = v records[0] ++ } else if scores[i] < min_score { min_score = v records[1] ++ } } return records }
Seems like cookies are disabled on this browser, please enable them to open this website
Breaking the Records
You are viewing a single comment's thread. Return to all comments →
Golang: