From 3642452feff895eba76673267178d05d4ebd6ed8 Mon Sep 17 00:00:00 2001 From: harshitha-85 <57164562+harshitha-85@users.noreply.github.com> Date: Wed, 30 Oct 2019 11:00:55 +0530 Subject: [PATCH] Birthday Cake Candles --- birthdaycandles.c | 117 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 birthdaycandles.c diff --git a/birthdaycandles.c b/birthdaycandles.c new file mode 100644 index 0000000..3b3144b --- /dev/null +++ b/birthdaycandles.c @@ -0,0 +1,117 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include + +char* readline(); +char** split_string(char*); + +// Complete the birthdayCakeCandles function below. +int birthdayCakeCandles(int ar_count, int* ar) { + int i,max=0,ct=0; + for(i=0;i=max) + max=ar[i]; + + } + for(i=0;i