Tag: Coding

Ceil in BST

Given a BST and a number X, find Ceil of X.Note: Ceil(X) is a number that is either equal to X or is immediately greater than X. Example 1:...

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...

Sales by Match

Problem Alex works at a clothing store. There is a large pile of socks that must be paired by color for sale.Given an array of...