Empowering CS learners, aspiring programmers, and startups with AI, Data Science & Programming insights — scaling skills from learning foundations to enterprise-grade solutions.
On line no. 66, pair_count appears the second time with value initialized to 0. So how is that its value is further updated? Knowing pair_count value I believe help me know the number of voters through global variable pair_count. So while writing code for vote function, I can proceed with the following: if n(n-1)/2= x, then value of n will be number of voters.