Problem 57422. Harmonic series counting
Solution Stats
Solution Comments
-
1 Comment
Roie Knaanie
on 17 Dec 2022
Nice and short solution,
although it does not work for limit > 17
and inefficient in time and memory for limit > 22 .
A close solution for large N can be obtained by
limit = log(N) + O(1)
Problem Recent Solvers11
Suggested Problems
-
Swap the first and last columns
17153 Solvers
-
1684 Solvers
-
212 Solvers
-
Back to basics 21 - Matrix replicating
1259 Solvers
-
Moving average (variable kernel length)
118 Solvers
More from this Author1
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!