Others Maths Puzzle

wap that takes array of integers representing the heights of the trees in the rows as input and prints the list of the visible trees

Read Solution (Total 2)

Others Other Question

in an exam,6 languages were available,only 3 of them have to be opted,4llowing this conditions:
1)students who opted arabic had 2 opt bengali and vice-versa
2)opted arabic, could'nt opt english
3)students opted chinese or german could'nt opt french
now d no of students n opted subjects are as follows:
arabic-70
bengali-70
english-70
chinese-90
german-85
french-35
q1)how many combinations r permitted?
5 6 7 4
q2)total hw many candidates hv appeared in the exam?
140 120 130 380
q3)how many of them have the combination of chinese with german?
15 20 35 70
Q4)how many of them have the combination of bengali with french?
15 20 35 70
There are 1000 pillars for a temple. 3 friends Linda, Chelsey, Julia visited that temple. (Some unrelated stuff) Linda is taller than Chelsey and taller than 2 of 1000 pillars. Julia is shorter than Linda. Find the correct sentence?
a) Linda is shorter among them
b) Chelsey is taller than Julia
c) Chelsey is shorter than Julia
d) Cannot determine who is taller among Chelsey and Julia