I want to determine how many items in each list are twice some other item in the same list?
For example, given the list
1 4 3 2 9 7 18 22
I should answer 3, as 2 is twice 1, 4 is twice 2, and 18 is twice 9.
for example this input
1 4 3 2 9 7 18 22 0
2 4 8 10 0
7 5 11 13 1 3 0
-1
output is
3
2
0
1
Expert's answer
2012-10-26T10:26:25-0400
Dear visitor Unfortunately, the statement of your question is a bit confusing. Please clarify the statement so we could help you
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment