Search
Search
Many problems are disguised as combinatorics and can be easily solved using Fibonacci numbers.
If the array is sorted, then the frequency of any element can be found easily by using binary search.
A simple recursive approach to construct a binary tree from its traversals