Arrays
- Array Sum a. Write a method that takes an array of numbers and returns the sum of all the numbers in the array.
- Find Maximum a. Write a method that finds and returns the maximum value in an array of numbers.
- Remove Duplicates a. Write a method that takes an array and removes any duplicate elements, returning a new array with unique elements.
- Reverse Array a. Write a method that reverses an array in-place, without using built-in reverse methods.
- Array Rotation a. Write a method that rotates an array to the right by a specified number of positions.
Hashes
- Word Frequency Counter a. Write a method that takes a string and returns a hash where the keys are words in the string and the values are the frequencies of those words.
- Hash Merge a. Write a method that takes two hashes and merges them into a single hash, combining values for common keys.
- Hash Sorting a. Write a method that takes a hash and returns a new hash with the keys sorted alphabetically.
- Hash Inversion a. Write a method that inverts a hash, swapping keys and values.
- Hash Lookup a. Write a method that takes a hash and a key, and returns the value associated with that key. If the key is not found, return a default value.# Ticketing