You are given a stored(either in the increasing or in the decreasing order)sequence of numbers,ending with a_1.You can assume that are at least two numbers before the ending -1.Let us call the sequence x0,x1,x2......xn-1.You have to output the number of distinct elements in the stored sequence .Kindly do not use arrays in the program.
Answers
Answered by
1
Answer:
NO idea
Explanation:
Similar questions