@ -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