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
-
Arrange Vector in descending order
8469 Solvers
-
Matrix with different incremental runs
119 Solvers
-
444 Solvers
-
Fix the last element of a cell array
913 Solvers
-
210 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!