Problem Description - 212
You are given N candles and the length of each candle is stored in an array A. The candles will form a triplet if Al > A[] > A[K] and i g <k
Display the total count of the number of candle triplets.
Function Description
Complete the candle Triplets function in the editor below. It has the following parameter(s):
Name
Type
Description
N
INTEGER
Parameters
total number of candles
A
INTEGER ARRAY
contains the length of candles
Return
The function must return an INTEGER denoting the count of the number of candle triplets..
Constraints
• 1 SNS 10^5
• 1 s A[i] s 10^5
Answers
Answered by
0
Answer:
JK NADDU
Step-by-step explanation:
TARAK MEHTA KA ULTA CHASMA
Similar questions
India Languages,
1 month ago
Geography,
1 month ago
Environmental Sciences,
1 month ago
History,
2 months ago
India Languages,
2 months ago
Math,
9 months ago
Social Sciences,
9 months ago