MCPcopy Create free account
hub / github.com/Vishruth-S/CompetitiveCode / solution.py

File solution.py

CodeChef_problems/CHFNSWPS/solution.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1'''
2-----------LOGIC---------------
3We can be sure that if any number occurs odd times in array A and even times in array B
4or vice versa then the answer is -1 as their cumulative frequency is odd, otherwise, the answer always exists.

Callers

nothing calls this directly

Calls 2

minFunction · 0.85
sortMethod · 0.80

Tested by

no test coverage detected