劍指offer\c++

把只包含因子二、3和5的數稱做醜數(Ugly Number)。例如六、8都是醜數,但14不是,由於它包含因子7。 習慣上咱們把1當作是第一個醜數。求按從小到大的順序的第N個醜數。 web int serchnum(vector<int>ivec,const int &num) { int length = ivec.size(); int max = ive
相關文章
相關標籤/搜索