codinasion-archive / codinasion-monorepo

Community Monorepo
https://codinasion.org
MIT License
52 stars 167 forks source link

Write a Python program to find the largest two elements in an array #5048

Closed harshraj8843 closed 10 months ago

harshraj8843 commented 10 months ago

Description

Write a Python 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/find_the_largest_two_elements_in_an_array.py` - Commit the changes - Create a pull request
codinasion-bot[bot] commented 10 months ago

👋🏻 Hey @harshraj8843

💖 Thanks for opening this issue 💖

A team member should be by to give feedback soon.

Amedi-Imbira commented 10 months ago

!assign

av-techspot commented 10 months ago

!assign

codinasion-bot[bot] commented 10 months ago

Hey @av-techspot, this issue is already assigned to @Amedi-Imbira! cc/ @codinasion/codinasion