Answer to Question #331309 in C for shiva

Question #331309

John is going through his family photo album.There is a total of N people in the family labeled 0 to N-1.

Find out the number of members of his family who have more than or equal to X children.

Input specification:

Input1:N,denoting the total number of family members.

Input2:X,denoting the minimum number of children a family members should have in order to be included in john’s final set.

Input3:An array of N elements where the ith element denotes the parent of the ith index. If the value of the element is -1,then that family member has no parent.

Example:

Input1:1

Input2:0

Input3:{-1}

Output=1 


0
Service report
It's been a while since this question is posted here. Still, the answer hasn't been got. Consider converting this question to a fully qualified assignment, and we will try to assist. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS