diff --git a/Hackerrank/algorithms/Birthday Cake Candles.py b/Hackerrank/algorithms/Birthday Cake Candles.py new file mode 100644 index 0000000..f066da0 --- /dev/null +++ b/Hackerrank/algorithms/Birthday Cake Candles.py @@ -0,0 +1,11 @@ +x = int(input().strip()) +y = list(map(int,input().strip().split(" ")[:x])) +y.sort() +p=0 + +temp = y[x-1] + +for i in range(len(y)): + if( temp==y[i]): + p+=1 +print(p)