From 377aff31ed98d338e632705287ae8b8d810eac27 Mon Sep 17 00:00:00 2001 From: akshat093 <65447773+akshat093@users.noreply.github.com> Date: Mon, 25 Oct 2021 13:32:16 +0530 Subject: [PATCH] Create ishaanLovesChocolate.cpp --- Arrays/ishaanLovesChocolate.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Arrays/ishaanLovesChocolate.cpp diff --git a/Arrays/ishaanLovesChocolate.cpp b/Arrays/ishaanLovesChocolate.cpp new file mode 100644 index 0000000..9f78bf6 --- /dev/null +++ b/Arrays/ishaanLovesChocolate.cpp @@ -0,0 +1,24 @@ +//Problem link: https://practice.geeksforgeeks.org/problems/ishaan-loves-chocolates2156/1/?category[]=Arrays&category[]=Arrays&problemStatus=solved&page=1&query=category[]ArraysproblemStatussolvedpage1category[]Arrays + +#include +using namespace std; +int main() + { + int T, N, max,i; + cin>>T; + while(T) + { + cin>>N; + int arr[N]; + max=1000; + for(i=0;i>arr[i]; + if(arr[i]