InterviewBit Problems   Count Element Occurence : Solved


My solution approach: Find the next highest number to find the rightmost position (1)
It is accepting even O(n) solution! (1)
Here is my code little lengthy but easy to think /** * @input A : Read only ( (2)