Skip to content

Commit

Permalink
Important conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
fsouza committed Jul 22, 2011
1 parent ab0ba65 commit 573a393
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions problem_037/37.go
Expand Up @@ -48,6 +48,10 @@ func Truncate(number int, from string) int {
}

func IsTruncatable(number int, primes []int) bool {
if number < 10 {
return false
}

operations := []string{"right", "left"}
for _, operation := range operations {
copyNumber := number
Expand Down

0 comments on commit 573a393

Please sign in to comment.