Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
''
&
#x27;
2
-----------LOGIC---------------
3
We can be sure that
if
any number occurs odd times in array A and even times in array B
4
or 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
min
Function · 0.85
sort
Method · 0.80
Tested by
no test coverage detected