Two political parties are contesting in the elections in the N number of states in the country ,each party wins some seats every year in each state.after the country elections are over we have the result of both the parties within an array.
the two parties considered equal win the same number of seats in the N states in any order otherwise they are unequal.
input :
1)it is an array of n integers depecting number of seats won by the party one in each state
2)it is an array of n integers depecting number of seats won by the party two in each state
3)An integers containing number of integers N
output:
equal : if the votes are equal
unequal: if the votes are unequal
invalid : if any party has negative number of votes.
Nivetha.R 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.