Computer Science, asked by skayesha2k2, 18 days ago

Your task is to find the total number of triplets in array whose average is a whole number

Answers

Answered by bhandariprarthana877
0

Answer:

hope it's helpful for you mark me as brainlist and drop some thanks plz

Attachments:
Answered by abigaildsouza510
0

Answer:

Given an array of distinct integers and a range [a, b], the task is to count the number of triplets having a sum in the range [a, b].

Explanation:

Input : array[] = {8, 3, 5, 2}

       range = [7, 11]

Output : 1

There is only one triplet {2, 3, 5}

having sum 10 in range [7, 11].

Input : array[] = {2, 7, 5, 3, 8, 4, 1, 9}

       range = [8, 16]

Output : 36

Similar questions