Annual day code by tech mahindra march 2022

                                               ANNUAL DAY CODE

Annual Day On the eve of the annual day, a competition is held among N students in which each student gains some points based on their performance. All students were asked to stand in a queue in an increasing order based on the points they scored. The clever students stood in a random order so that the students with lower points are not noticed. You will be given a points array where points[] tells the teacher the number of points that the student eamed. Your task is to help the teacher to find all pairs such that for all (0) <j<N), the points scored by the th student is greater than that of the student, Le., points [] > points[] where i <j and return the total count of such pairs.

connect with me on
 

Follow me on :

Instagram        Twitter           LinkedIn             my website                facebook          Whatsapp             gmail



connect with me on

Comments

Popular posts from this blog

EV Minimize Array Cost asked in Infosys- march 2022 (available in c++ only)

Chomsky's hierarchy Explanation :

Sum of largest and smallest element in array by tech mahindra 2022