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...
Maximum sum of hour glass in matrix
Problem: Given a 6 x 6 2D array, arr. An hourglass in A is a subset of values with indices facing in this pattern in...
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...