什麼是等比數列?

一個故事瞭解等比數列~ const log2n = main(100, 2); // O(log2n) [ 1, 2, 4, 8, 16, 32, 64, 128 ] sum(log2n, 2); const log3n = main(100, 3); // O(log3n) [ 1, 3, 9, 27, 81, 243 ] sum(log3n, 3); const log4n = main(10
相關文章
相關標籤/搜索