HackerRank: Equalize the Array
Problem Karl has an array of integers. He wants to reduce the array until all remaining elements are equal. Determine the minimum number of elements to...
Problem Karl has an array of integers. He wants to reduce the array until all remaining elements are equal. Determine the minimum number of elements to...
Problem Lilah has a string, s, of lowercase English letters that she repeated infinitely many times. Given an integer, n, find and print the number of letter a‘s in...
Problem Emma is playing a new mobile game that starts with consecutively numbered clouds. Some of the clouds are thunderheads and others are cumulus. She can...
Problem Gary is an avid hiker. He tracks his hikes meticulously, paying close attention to small details like topography. During his last hike he took exactly n steps....
Problem John works at a clothing store. He has a large pile of socks that he must pair by color for sale. Given an array of...