some tricks of coding interview basic logic
Write in with 🤍 and Golang
- Math Factorial
- Data Structure of Set
- Web Scraping <-- not yet ready
- FizzBuzz and Palindrom
func gradingStudents(grades []int32) []int32 {
var result []int32
for i := 0; i < len(grades); i++ {
if grades[i] >= 38 {
var mod = grades[i] % 5
if mod >= 3 {
grades[i] += 5 - mod
}
}
result = append(result, grades[i])
}
return result
}