Skip to content

WahidinAji/some-tricks-coding-interview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

some-tricks-coding-interview

some tricks of coding interview basic logic

Write in with 🤍 and Golang

LIST

Codewars

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
}

About

some tricks of coding interview basic logic

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published