update euler 54

This commit is contained in:
VicRen
2020-12-14 14:15:04 +08:00
parent e5902a9fea
commit 9428031c4d

View File

@@ -74,3 +74,13 @@ func (c card) suit() string {
}
type cards [5]card
func (c cards) isSampleSuit() bool {
s := c[0].suit()
for _, card := range c {
if card.suit() != s {
return false
}
}
return true
}