You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.
Write a Scala program to find the largest two elements in an array
Input: arr[] = {12, 13, 1, 10, 34, 1}
Output: The largest two elements are 34 and 13
Input: arr[] = {10, 5, 10}
Output: The largest two elements are 10 and 5
Input: arr[] = {10, 10, 10}
Output: The largest two elements are 10 and 10
How to contribute
Comment !assign to assign this issue to yourself
Fork this repository
Create a new branch
Save the solution in program/program/find-the-largest-two-elements-in-an-array/findTheLargestTwoElementsInAnArray.scala
Commit the changes
Create a pull request
The text was updated successfully, but these errors were encountered:
Description
Write a Scala program to find the largest two elements in an array
How to contribute
!assign
to assign this issue to yourselfprogram/program/find-the-largest-two-elements-in-an-array/findTheLargestTwoElementsInAnArray.scala
The text was updated successfully, but these errors were encountered: