Problem 57422. Harmonic series counting
85.71% Correct | 14.29% Incorrect
Last Solution submitted on Mar 14, 2023
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
Arrange Vector in descending order
Matrix with different incremental runs
Fix the last element of a cell array
More from this Author1
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!