My question is regarding how do we approach while solving for limits. I will quote two examples in which where the solutions obtained are through different methods.
$$\lim_{n\to\infty}\frac{1+\frac{1}{2}+\frac{1}{3}+...+\frac{1}{n}}{n}$$
Now, the given solution is by comparing the areas bounded by the curve $y=\frac{1}{x}$ and the rectangles below the curve from $x=1$ to $x=n$ $$1<1+\frac{1}{2}+\frac{1}{3}+...+\frac{1}{n}=1+\frac{1}{2}(2-1)+\frac{1}{3}(3-2)+...+\frac{1}{n}(n-(n-1))<1+\int_1^n\frac{1}{x}dx$$ i.e.$$\frac{1}{n}<\frac{1+\frac{1}{2}+\frac{1}{3}+...+\frac{1}{n}}{n}<\frac{1+\log_e n}{n}$$ So by Squeeze Theorem as $n\to \infty$, we have $$\lim_{n\to\infty}\frac{1+\frac{1}{2}+\frac{1}{3}+...+\frac{1}{n}}{n}=0$$ which is perfectly justified.
But I approached the question through a more elementary approach: $$\lim_{n\to\infty}\frac{1+\frac{1}{2}+\frac{1}{3}+...+\frac{1}{n}}{n}=\lim_{n\to\infty}\left(\frac{1}{n}+\frac{1}{2n}+\frac{1}{3n}+...+\frac{1}{n^2}\right)=0.$$Is my approach correct?
But this approach of mine did not work for the limit :$$\lim_{n\to\infty}\left(\frac{1}{n+1}+\frac{1}{n+2}+...+\frac{1}{2n}\right)$$ where I got the answer as '$0$' but the answer to it is $\log_e2$ which is obtained using the idea of Riemann Sum.
My question is which approach to use and what are the conditions. I am quite confused.