func slicesEqual(x, y []string) bool {
	if len(x) != len(y) {
		return false
	}

	xMap := make(map[string]int)
	yMap := make(map[string]int)

	for _, xElem := range x {
		xMap[xElem]++
	}
	for _, yElem := range y {
		yMap[yElem]++
	}

	for xMapKey, xMapVal := range xMap {
		if yMap[xMapKey] != xMapVal {
			return false
		}
	}
	return true
}
// Ignore ordering, just check if size and elements are the same
Ignore ordering, just check if size and elements are the same
// Ignore ordering just check if size and elements are the same
func slicesEqual(x, y []string) bool {
	if len(x) != len(y) {
		return false
	}
	xMap := make(map[string]int)
	yMap := make(map[string]int)
	for _, xElem := range x {
		xMap[xElem]++
	}
	for _, yElem := range y {
		yMap[yElem]++
	}
	for xMapKey, xMapVal := range xMap {
		if yMap[xMapKey] != xMapVal {
			return false
		}
	}
	return true
}
func slicesEqual ( x , y [ ] string ) bool { if len ( x ) != len ( y ) { return false } xMap := make ( map [ string ] int ) yMap := make ( map [ string ] int ) for _ , xElem := range x { xMap [ xElem ] ++ } for _ , yElem := range y { yMap [ yElem ] ++ } for xMapKey , xMapVal := range xMap { if yMap [ xMapKey ] != xMapVal { return false } } return true }
Ignore ordering, just check if size and elements are the same
Ignore ordering just check if size and elements are the same