Not-Strong-Enough's blog

By Not-Strong-Enough, history, 4 years ago, In English

Problem number: A this is a simple problem,You have to count the odd number and even number. If count value of odd or count value of even is equal to size of array then answer should be Yes else No. Example: In the 1st test case value of n is 3 and element of array is 1 1 3 so here all number is odd so count of odd is 3 and it's equal to the size of array so the answer is yes. In the 2nd test case the value of n is 4 and elements of array is 1 1 2 1 here count of odd is 3 and count of even is 1 so this two are not equal to n so the answer is No.

  • Vote: I like it
  • -12
  • Vote: I do not like it