Creating a set containing Fibonacci numbers
HashSet < int > hash = new HashSet < int > ( ) ; createHash ( hash , max_val ) ; int [ ] left = new int [ n ] ; int [ ] right = new int [ n ] ; int fibcount = 0 , res = - 1 ;