---
title: "Discussion on \"Largest Element in an Array (Easy)\" | Hashnode"
description: "Discussion on \"Largest Element in an Array (Easy)\". Q- Given an array of integers nums, return the value of the largest element in the array\nExamples:\nInput: nums = [3, 3, 6, 1]\nOutput: 6\nExplanation: The largest element in array is 6\nInput: nums = [3, 3, 0, 99, -40]\nOutput: 99\nExplanation: The larges..."
url: "https://hashnode.com/posts/largest-element-in-an-array-easy/68cc9eea3cf2f0b888f649d5"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Largest Element in an Array (Easy)](https://dsa-problem-solving.hashnode.dev/largest-element-in-an-array-easy?utm_source=hashnode&utm_medium=feed)

Q- Given an array of integers nums, return the value of the largest element in the array Examples: Input: nums = \[3, 3, 6, 1\] Output: 6 Explanation: The largest element in array is 6 Input: nums = \[3, 3, 0, 99, -40\] Output: 99 Explanation: The larges...

Sep 19, 2025 · 1 min read · dsa-problem-solving.hashnode.dev  
Read the article

-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#python](https://hashnode.com/tag/python)
-   [#gfg](https://hashnode.com/tag/gfg)
-   [#striversa2zdsa](https://hashnode.com/tag/striversa2zdsa)

## Written by

[ADITYA DHIMAN](https://hashnode.com/@Adityadhiman02)

@Adityadhiman02 · haridwar

  
[View profile](https://hashnode.com/@Adityadhiman02)

Analyst .

Python | C | DSA | AWS | PowerBi

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
