Program to Cyclically rotate an array by one

Subarray with given sum

Given an array, rotate the array by one position in clock-wise direction. Below question to rotate an array is taken from GeeksforGeeks platform . To rotate an array following are steps : 1) Store last element in a variable say x.2) Shift all elements one position ahead.3) Replace first element of array with x. Example 1: Example… Read More

Complex Number Problem Solved: Coding Ninjas

First Index Of a Number in an Array

Complex Number problems are basically asked in many coding questions. This question is taken from one of the basic challenges in Coding Ninjas. Before starting the actual question, let us know more about the complex numbers for a better understanding of the concepts. Complex numbers are the numbers that are expressed in the form of a+ib where, a,b… Read More