From 23b89b7450fa8bc649d9d41a24083d3f427345a5 Mon Sep 17 00:00:00 2001 From: CHAYANDEV BERA <91884990+Chayandev@users.noreply.github.com> Date: Wed, 5 Oct 2022 11:41:02 +0530 Subject: [PATCH] Create left_rotationOfarray.C --- algorithms/C/arrays/left_rotationOfarray.C | 61 ++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 algorithms/C/arrays/left_rotationOfarray.C diff --git a/algorithms/C/arrays/left_rotationOfarray.C b/algorithms/C/arrays/left_rotationOfarray.C new file mode 100644 index 00000000..872b3a99 --- /dev/null +++ b/algorithms/C/arrays/left_rotationOfarray.C @@ -0,0 +1,61 @@ +/* PROBLEM: Given an array arr[] of integers, now make left rotation of the array according to the number given by user then print the updated array */ + +#include +#include +void reverse(int*arr,int start,int end) +{ + while(start