When it comes to finding the largest element in an array, one way that usually comes to mind is to sort the elements in ascending order.
Front-End Developer
I’m MERN Stack developer and UX/UI Designer with more than 2 years of experience.
Markdown supported · ⌘↵ to post
No responses yet.