Skip to content
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 #5052

Closed
harshraj8843 opened this issue Jan 8, 2024 · 2 comments · Fixed by #5744
Closed

Write a Scala program to find the largest two elements in an array #5052

harshraj8843 opened this issue Jan 8, 2024 · 2 comments · Fixed by #5744
Assignees
Labels
closed closed issues/PRs good first issue Good for newcomers program Scala scala related

Comments

@harshraj8843
Copy link
Contributor

Description

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
@harshraj8843 harshraj8843 added good first issue Good for newcomers program Scala scala related labels Jan 8, 2024
@codinasion-bot
Copy link

codinasion-bot bot commented Jan 8, 2024

👋🏻 Hey @harshraj8843

💖 Thanks for opening this issue 💖

A team member should be by to give feedback soon.

@Riyazul555
Copy link
Contributor

!assign

@codinasion-bot codinasion-bot bot added closed closed issues/PRs and removed triage Waiting for review labels Jun 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
closed closed issues/PRs good first issue Good for newcomers program Scala scala related
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants