You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
168 B
14 lines
168 B
5 months ago
|
package cap3
|
||
|
|
||
|
func Ex29(nums []int) bool {
|
||
|
for _, num1 := range nums {
|
||
|
for _, num2 := range nums {
|
||
|
if num1 == num2 {
|
||
|
return false
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return true
|
||
|
}
|