#49 JS Interview Question | JS Coding questions #javascript #interviewpreparation #frontend

preview_player
Показать описание
Given an array of positive integers arr[], return the second largest element from the array. If the second largest element doesn't exist then return -1.

Input: arr[] = [12, 35, 1, 10, 34, 1]
Output: 34
Рекомендации по теме
Комментарии
Автор

I support you i started 3months ago and you motivate me to keep going, keep posting brother👍👍

antmiq
welcome to shbcf.ru