hackerrank (1) 썸네일형 리스트형 [HackerRank] Breaking the Records in Rust use std::env; use std::fs::File; use std::io::{self, BufRead, Write}; /* * Complete the 'breakingRecords' function below. * * The function is expected to return an INTEGER_ARRAY. * The function accepts INTEGER_ARRAY scores as parameter. */ fn breakingRecords(scores: &[i32]) -> Vec { let mut result = vec![0, 0]; let mut min = &scores[0]; let mut max = &scores[0]; for score in scores { if score > .. 이전 1 다음