Are Strings Anagrams?
AlgoAnagram = all letters can be reused to create another word.
Approaches
Approach 1: sorting (nonintuitive to me)
An anagram is produced by rearranging the letters.
Sort the letters alphabetically for the two strings.
The sorted strings should…
Fibonacci
Algo1 1 2 3 5 8 13 etc.
Series of numbers found a lot in nature:
- Number of petals in a flower,
- The number of spirals on a sunflower or pineapple tend to be a Fibonacci number
When we make squares with those widths, we get a nice spiral.
Simple…