← Home
For problem statement at 0-999/100-199/160-169/160/problemB.txt this is a correct solution, but verifier at 0-999/100-199/160-169/160/verifierB.go ends with All tests passed can you fix the verifier? ```go
package main

import (
	"fmt"
	"sort"
)

func main() {
	var n int
	fmt.Scan(&n)
	var s string
	fmt.Scan(&s)

	first := []byte(s[:n])
	second := []byte(s[n:])

	sort.Slice(first, func(i, j int) bool { return first[i] < first[j] })
	sort.Slice(second, func(i, j int) bool { return second[i] < second[j] })

	strictlyLess := true
	strictlyMore := true

	for i := 0; i < n; i++ {
		if first[i] >= second[i] {
			strictlyLess = false
		}
		if first[i] <= second[i] {
			strictlyMore = false
		}
	}

	if strictlyLess || strictlyMore {
		fmt.Println("YES")
	} else {
		fmt.Println("NO")
	}
}
```