RWVAXKJBVCVDC6MUXBSMTST72M36GOAA3XLLJ3KLTX3GNEXFJWNAC
func countValid(data []pwData) (int, error) {
func countValidNew(data []pwData) (int, error) {
var valid int
for _, pw := range data {
if pw.hash[pw.min-1] == byte(pw.ch) && pw.hash[pw.max-1] != byte(pw.ch) {
valid++
} else if pw.hash[pw.max-1] == byte(pw.ch) && pw.hash[pw.min-1] != byte(pw.ch) {
valid++
}
}
return valid, nil
}
func countValidOld(data []pwData) (int, error) {