Month: February 2021

Arrays: Left Rotation

Problem A left rotation operation on an array shifts each of the array’s elements 1 unit to the left. For example, if 2 left rotations...

Letter count in an infinite string

Problem: There is a string, s, of lowercase English letters that is repeated infinitely many times. Given an integer n find and print the number...