simplified

This commit is contained in:
konrad 2019-04-07 14:11:21 +02:00
parent 8a17a40e0c
commit 63439ae06c
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 3 deletions

View File

@ -33,10 +33,9 @@ func main() {
}
// Check if the slice is sorted
sted := sort.SliceIsSorted(slice, func(i, j int) bool {
if sort.SliceIsSorted(slice, func(i, j int) bool {
return slice[i] < slice[j]
})
if sted {
}) {
sorted = true
break
}