mirror of
https://github.com/cubixle/codekata-golang.git
synced 2026-04-30 18:38:42 +01:00
update code
This commit is contained in:
@@ -38,9 +38,8 @@ func Tau(num int) int {
|
||||
return p
|
||||
}
|
||||
|
||||
func GetTriangularNumber(count int) int {
|
||||
ret := count * (count + 1) / 2
|
||||
return ret
|
||||
func GetTriangularNumber(n int) int {
|
||||
return n * (n + 1) / 2
|
||||
}
|
||||
|
||||
func ListDivisors(input int) []int {
|
||||
|
||||
Reference in New Issue
Block a user