public static void main(String args[]) {
        UglyNumbers ugly = new UglyNumbers();
        int result = ugly.ugly(150);
        System.out.println(result);
        int[] primes = {2, 3, 7, 11};
        System.out.print(ugly.nthSuperUglyNumber1(17, primes));
    }
Date 03/08/2016
@author Tushar Roy

Find nth ugly number.

https://leetcode.com/problems/ugly-number-ii/
https://leetcode.com/problems/super-ugly-number/
http://www.geeksforgeeks.org/ugly-numbers/
src/com/interview/dynamic/UglyNumbers.java